]> 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)
commit29ba6bbb932d0550adfb5d1da9051dd7858adcd9
tree0faf9f73bdb9cdf72787bc138792135c017ffa37
parenta9e5b9c9c9575c380ec4b54ecb19305a52808312
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