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 05/24] net, diet: Default to small TCP hash tables on small kernels
    Date
    From: Andi Kleen <ak@linux.intel.com>

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

    diff --git a/net/ipv4/tcp.c b/net/ipv4/tcp.c
    index 4bd6d52..3fd48421 100644
    --- a/net/ipv4/tcp.c
    +++ b/net/ipv4/tcp.c
    @@ -3127,7 +3127,11 @@ EXPORT_SYMBOL_GPL(tcp_done);

    extern struct tcp_congestion_ops tcp_reno;

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


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