Skip to content

Commit 9ca677b

Browse files
edumazetdavem330
authored andcommitted
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 <[email protected]> Acked-by: David Lebrun <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent f4ec606 commit 9ca677b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

net/ipv6/seg6_hmac.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -389,7 +389,8 @@ static int seg6_hmac_init_algo(void)
389389
return -ENOMEM;
390390

391391
for_each_possible_cpu(cpu) {
392-
shash = kzalloc(shsize, GFP_KERNEL);
392+
shash = kzalloc_node(shsize, GFP_KERNEL,
393+
cpu_to_node(cpu));
393394
if (!shash)
394395
return -ENOMEM;
395396
*per_cpu_ptr(algo->shashs, cpu) = shash;

0 commit comments

Comments
 (0)