* [PATCH net-next] ipv6: add NUMA awareness to seg6_hmac_init_algo()
@ 2017-01-20 16:08 Eric Dumazet
2017-01-21 12:18 ` David Lebrun
2017-01-22 21:50 ` David Miller
0 siblings, 2 replies; 3+ messages in thread
From: Eric Dumazet @ 2017-01-20 16:08 UTC (permalink / raw)
To: David Miller; +Cc: netdev, David Lebrun
From: Eric Dumazet <edumazet@google.com>
Since we allocate per cpu storage, let's also use NUMA hints.
Signed-off-by: Eric Dumazet <edumazet@google.com>
---
net/ipv6/seg6_hmac.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/net/ipv6/seg6_hmac.c b/net/ipv6/seg6_hmac.c
index 5215e1eba01030dc9345b847eee5ac5ef3bed1b9..b274f1d95e037c93e8e0e6531cfc51709f71297c 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;
^ permalink raw reply related [flat|nested] 3+ messages in thread* Re: [PATCH net-next] ipv6: add NUMA awareness to seg6_hmac_init_algo()
2017-01-20 16:08 [PATCH net-next] ipv6: add NUMA awareness to seg6_hmac_init_algo() Eric Dumazet
@ 2017-01-21 12:18 ` David Lebrun
2017-01-22 21:50 ` David Miller
1 sibling, 0 replies; 3+ messages in thread
From: David Lebrun @ 2017-01-21 12:18 UTC (permalink / raw)
To: Eric Dumazet, David Miller; +Cc: netdev
[-- Attachment #1: Type: text/plain, Size: 945 bytes --]
On 01/20/2017 05:08 PM, Eric Dumazet wrote:
> From: Eric Dumazet <edumazet@google.com>
>
> Since we allocate per cpu storage, let's also use NUMA hints.
>
> Signed-off-by: Eric Dumazet <edumazet@google.com>
> ---
> net/ipv6/seg6_hmac.c | 3 ++-
> 1 file changed, 2 insertions(+), 1 deletion(-)
>
> diff --git a/net/ipv6/seg6_hmac.c b/net/ipv6/seg6_hmac.c
> index 5215e1eba01030dc9345b847eee5ac5ef3bed1b9..b274f1d95e037c93e8e0e6531cfc51709f71297c 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;
>
>
Thanks
Acked-by: David Lebrun <david.lebrun@uclouvain.be>
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 163 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread* Re: [PATCH net-next] ipv6: add NUMA awareness to seg6_hmac_init_algo()
2017-01-20 16:08 [PATCH net-next] ipv6: add NUMA awareness to seg6_hmac_init_algo() Eric Dumazet
2017-01-21 12:18 ` David Lebrun
@ 2017-01-22 21:50 ` David Miller
1 sibling, 0 replies; 3+ messages in thread
From: David Miller @ 2017-01-22 21:50 UTC (permalink / raw)
To: eric.dumazet; +Cc: netdev, david.lebrun
From: Eric Dumazet <eric.dumazet@gmail.com>
Date: Fri, 20 Jan 2017 08:08:56 -0800
> From: Eric Dumazet <edumazet@google.com>
>
> Since we allocate per cpu storage, let's also use NUMA hints.
>
> Signed-off-by: Eric Dumazet <edumazet@google.com>
Applied.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2017-01-22 21:51 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-01-20 16:08 [PATCH net-next] ipv6: add NUMA awareness to seg6_hmac_init_algo() Eric Dumazet
2017-01-21 12:18 ` David Lebrun
2017-01-22 21:50 ` David Miller
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).