projects
/
GitHub
/
MotorolaMobilityLLC
/
kernel-slsi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f4ec606
)
ipv6: add NUMA awareness to seg6_hmac_init_algo()
author
Eric Dumazet
<edumazet@google.com>
Fri, 20 Jan 2017 16:08:56 +0000
(08:08 -0800)
committer
David S. Miller
<davem@davemloft.net>
Sun, 22 Jan 2017 21:50:36 +0000
(16:50 -0500)
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>
net/ipv6/seg6_hmac.c
patch
|
blob
|
blame
|
history
diff --git
a/net/ipv6/seg6_hmac.c
b/net/ipv6/seg6_hmac.c
index 5215e1eba01030dc9345b847eee5ac5ef3bed1b9..b274f1d95e037c93e8e0e6531cfc51709f71297c 100644
(file)
--- 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;