]> git.baikalelectronics.ru Git - kernel.git/commit
net_sched: act_gact: use a separate packet counters for gact_determ()
authorEric Dumazet <edumazet@google.com>
Mon, 6 Jul 2015 12:18:06 +0000 (05:18 -0700)
committerDavid S. Miller <davem@davemloft.net>
Wed, 8 Jul 2015 20:50:42 +0000 (13:50 -0700)
commitd3bb0ee796a00f68199d3ff2e62bf09615c47446
tree0faf9f73bdb9cdf72787bc138792135c017ffa37
parent705da9c0dff741b8e7c5d2e18bb630e883c64a5b
net_sched: act_gact: use a separate packet counters for gact_determ()

Second step for gact RCU operation :

We want to get rid of the spinlock protecting gact operations.
Stats (packets/bytes) will soon be per cpu.

gact_determ() would not work without a central packet counter,
so lets add it for this mode.

Signed-off-by: Eric Dumazet <edumazet@google.com>
Cc: Alexei Starovoitov <ast@plumgrid.com>
Acked-by: Jamal Hadi Salim <jhs@mojatatu.com>
Acked-by: John Fastabend <john.fastabend@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/tc_act/tc_gact.h
net/sched/act_gact.c