summaryrefslogtreecommitdiffstats
path: root/net/ipv6/seg6_hmac.c
diff options
context:
space:
mode:
authorEric Dumazet <edumazet@google.com>2017-01-20 17:08:56 +0100
committerDavid S. Miller <davem@davemloft.net>2017-01-22 22:50:36 +0100
commit9ca677b1bd8979f9a7702db5ed4028e4b8b232e8 (patch)
tree39870ca5d03e9917bc095486faca815b89b80902 /net/ipv6/seg6_hmac.c
parentnet: stmicro: fix LS field mask in EEE configuration (diff)
downloadlinux-9ca677b1bd8979f9a7702db5ed4028e4b8b232e8.tar.xz
linux-9ca677b1bd8979f9a7702db5ed4028e4b8b232e8.zip
ipv6: add NUMA awareness to seg6_hmac_init_algo()
Since we allocate per cpu storage, let's also use NUMA hints. Signed-off-by: Eric Dumazet <edumazet@google.com> Acked-by: David Lebrun <david.lebrun@uclouvain.be> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv6/seg6_hmac.c')
-rw-r--r--net/ipv6/seg6_hmac.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/net/ipv6/seg6_hmac.c b/net/ipv6/seg6_hmac.c
index 5215e1eba010..b274f1d95e03 100644
--- a/net/ipv6/seg6_hmac.c
+++ b/net/ipv6/seg6_hmac.c
@@ -389,7 +389,8 @@ static int seg6_hmac_init_algo(void)
return -ENOMEM;
for_each_possible_cpu(cpu) {
- shash = kzalloc(shsize, GFP_KERNEL);
+ shash = kzalloc_node(shsize, GFP_KERNEL,
+ cpu_to_node(cpu));
if (!shash)
return -ENOMEM;
*per_cpu_ptr(algo->shashs, cpu) = shash;