From: Eric Dumazet <hidden> Date: 2016-08-24 17:23:36
From: Eric Dumazet <edumazet@google.com>
per_cpu_inc() is faster (at least on x86) than per_cpu_ptr(xxx)++;
Signed-off-by: Eric Dumazet <edumazet@google.com>
---
include/net/sch_generic.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
From: John Fastabend <john.fastabend@gmail.com> Date: 2016-08-24 18:00:43
On 16-08-24 10:23 AM, Eric Dumazet wrote:
quoted hunk
From: Eric Dumazet <edumazet@google.com>
per_cpu_inc() is faster (at least on x86) than per_cpu_ptr(xxx)++;
Signed-off-by: Eric Dumazet <edumazet@google.com>
---
include/net/sch_generic.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
From: Eric Dumazet <hidden> Date: 2016-08-24 19:14:12
On Wed, 2016-08-24 at 11:00 -0700, John Fastabend wrote:
Looks good to me. I guess we can also do the same for overlimit qstats.
Acked-by: John Fastabend <redacted>
Not sure about overlimit, although I could probably change these :
net/sched/act_bpf.c:85: qstats_drop_inc(this_cpu_ptr(prog->common.cpu_qstats));
net/sched/act_gact.c:145: qstats_drop_inc(this_cpu_ptr(gact->common.cpu_qstats));
From: David Miller <hidden> Date: 2016-08-25 23:47:10
From: Eric Dumazet <redacted>
Date: Wed, 24 Aug 2016 10:23:34 -0700
From: Eric Dumazet <edumazet@google.com>
per_cpu_inc() is faster (at least on x86) than per_cpu_ptr(xxx)++;
Signed-off-by: Eric Dumazet <edumazet@google.com>