]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitd060cc99f26d9815e42716ce9b8daea544a29b9b
tree671d57668c3f10a22e76704ad6d2c9f0a2e1f9f1
parent8cb3475f8ec0314e73700b24e2bb4aa46f84a8bd
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