lkml.org 
[lkml]   [2014]   [May]   [5]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH 06/24] net, diet: Use small UDP hash tables on small kernels
    Date
    From: Andi Kleen <ak@linux.intel.com>

    UDP has two hash tables, for UDP and UDP lite. Default
    them to 16 entries each on small kernels. This can be
    still overriden on the command line.

    Signed-off-by: Andi Kleen <ak@linux.intel.com>
    ---
    net/ipv4/udp.c | 5 +++++
    1 file changed, 5 insertions(+)

    diff --git a/net/ipv4/udp.c b/net/ipv4/udp.c
    index 4468e1a..90f967b 100644
    --- a/net/ipv4/udp.c
    +++ b/net/ipv4/udp.c
    @@ -2415,7 +2415,12 @@ void udp4_proc_exit(void)
    }
    #endif /* CONFIG_PROC_FS */

    +#ifdef CONFIG_BASE_SMALL
    +static __initdata unsigned long uhash_entries = 16;
    +#else
    static __initdata unsigned long uhash_entries;
    +#endif
    +
    static int __init set_uhash_entries(char *str)
    {
    ssize_t ret;
    --
    1.9.0


    \
     
     \ /
      Last update: 2014-05-06 02:21    [W:3.930 / U:0.864 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site