• Arnaldo Carvalho de Melo's avatar
    [INET]: Move the TCP ehash functions to include/net/inet_hashtables.h · 304a1618
    Arnaldo Carvalho de Melo authored
    To be shared with DCCP (and others), this is the start of a series of patches
    that will expose the already generic TCP hash table routines.
    
    The few changes noticed when calling gcc -S before/after on a pentium4 were of
    this type:
    
            movl    40(%esp), %edx
            cmpl    %esi, 472(%edx)
            je      .L168
    -       pushl   $291
    +       pushl   $272
            pushl   $.LC0
            pushl   $.LC1
            pushl   $.LC2
    
    [acme@toy net-2.6.14]$ size net/ipv4/tcp_ipv4.before.o net/ipv4/tcp_ipv4.after.o
       text    data     bss     dec     hex filename
      17804     516     140   18460    481c net/ipv4/tcp_ipv4.before.o
      17804     516     140   18460    481c net/ipv4/tcp_ipv4.after.o
    
    Holler if some weird architecture has issues with things like this 8)
    Signed-off-by: default avatarArnaldo Carvalho de Melo <acme@ghostprotocols.net>
    Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
    304a1618
tcp_ipv4.c 61.8 KB