Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 9ca677b1 authored by Eric Dumazet's avatar Eric Dumazet Committed by David S. Miller
Browse files

ipv6: add NUMA awareness to seg6_hmac_init_algo()



Since we allocate per cpu storage, let's also use NUMA hints.

Signed-off-by: default avatarEric Dumazet <edumazet@google.com>
Acked-by: default avatarDavid Lebrun <david.lebrun@uclouvain.be>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent f4ec6064
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -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;