tcp: md5: remove one indirection level in tcp_md5sig_pool
authorEric Dumazet <eric.dumazet@gmail.com>
Mon, 12 Sep 2011 20:28:37 +0000 (20:28 +0000)
committerDavid S. Miller <davem@davemloft.net>
Sat, 17 Sep 2011 05:15:46 +0000 (01:15 -0400)
commit765cf9976e937f1cfe9159bf4534967c8bf8eb6d
tree671d57668c3f10a22e76704ad6d2c9f0a2e1f9f1
parentb9fa1fbf98178c8bbda23ff1d3ed0731bb3c0bd1
tcp: md5: remove one indirection level in tcp_md5sig_pool

tcp_md5sig_pool is currently an 'array' (a percpu object) of pointers to
struct tcp_md5sig_pool. Only the pointers are NUMA aware, but objects
themselves are all allocated on a single node.

Remove this extra indirection to get proper percpu memory (NUMA aware)
and make code simpler.

Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/tcp.h
net/ipv4/tcp.c