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)
commitcc6510a9504fd3c03d76bd68d99653148342eecc
tree0faf9f73bdb9cdf72787bc138792135c017ffa37
parentcef5ecf96b28dc91c4e9f398a336c578fb9e1a0c
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
This page took 0.026303 seconds and 5 git commands to generate.