]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit5ae087d3a70913d4510ec42a99bec2c82bb9ed97
tree79b266da33febc50bc54adc033ac9e38a1750bcf
parent8c8e578cd865662e1a86e254fc9a7ee5f4e57834
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