diff options
author | Eric Dumazet <eric.dumazet@gmail.com> | 2011-09-12 20:28:37 (GMT) |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2011-09-17 05:15:46 (GMT) |
commit | 765cf9976e937f1cfe9159bf4534967c8bf8eb6d (patch) | |
tree | 671d57668c3f10a22e76704ad6d2c9f0a2e1f9f1 /include | |
parent | b9fa1fbf98178c8bbda23ff1d3ed0731bb3c0bd1 (diff) | |
download | linux-fsl-qoriq-765cf9976e937f1cfe9159bf4534967c8bf8eb6d.tar.xz |
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>
Diffstat (limited to 'include')
-rw-r--r-- | include/net/tcp.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/net/tcp.h b/include/net/tcp.h index 149a415..d6ca000 100644 --- a/include/net/tcp.h +++ b/include/net/tcp.h @@ -1180,7 +1180,7 @@ extern int tcp_v4_md5_do_del(struct sock *sk, __be32 addr); #define tcp_twsk_md5_key(twsk) NULL #endif -extern struct tcp_md5sig_pool * __percpu *tcp_alloc_md5sig_pool(struct sock *); +extern struct tcp_md5sig_pool __percpu *tcp_alloc_md5sig_pool(struct sock *); extern void tcp_free_md5sig_pool(void); extern struct tcp_md5sig_pool *tcp_get_md5sig_pool(void); |