tcp: md5: rcu conversion
authorEric Dumazet <eric.dumazet@gmail.com>
Tue, 31 Jan 2012 05:18:33 +0000 (05:18 +0000)
committerDavid S. Miller <davem@davemloft.net>
Tue, 31 Jan 2012 17:14:00 +0000 (12:14 -0500)
commita915da9b69273815527ccb3789421cb7027b545b
tree79b266da33febc50bc54adc033ac9e38a1750bcf
parenta2d91241a80ec9bbc5ab24b9a2c4d730b3fa5730
tcp: md5: rcu conversion

In order to be able to support proper RST messages for TCP MD5 flows, we
need to allow access to MD5 keys without locking listener socket.

This conversion is a nice cleanup, and shrinks size of timewait sockets
by 80 bytes.

IPv6 code reuses generic code found in IPv4 instead of duplicating it.

Control path uses GFP_KERNEL allocations instead of GFP_ATOMIC.

Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com>
Cc: Shawn Lu <shawn.lu@ericsson.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/linux/tcp.h
include/net/tcp.h
net/ipv4/tcp_ipv4.c
net/ipv4/tcp_minisocks.c
net/ipv6/tcp_ipv6.c