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>
This commit is contained in:
Родитель
f4ec60644a
Коммит
9ca677b1bd
|
@ -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;
|
||||
|
|
Загрузка…
Ссылка в новой задаче