diff options
author | Vlad Buslov <vladbu@mellanox.com> | 2019-10-30 15:09:01 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2019-10-31 02:07:50 +0100 |
commit | 5e1ad95b630e652d3467d1fd1f0b5e5ea2c441e2 (patch) | |
tree | d58db786d3cf69472784345310715ff49b9f23c8 /net/sched/act_gact.c | |
parent | net: sched: extract common action counters update code into function (diff) | |
download | linux-5e1ad95b630e652d3467d1fd1f0b5e5ea2c441e2.tar.xz linux-5e1ad95b630e652d3467d1fd1f0b5e5ea2c441e2.zip |
net: sched: extract bstats update code into function
Extract common code that increments cpu_bstats counter into standalone act
API function. Change hardware offloaded actions that use percpu counter
allocation to use the new function instead of incrementing cpu_bstats
directly.
This commit doesn't change functionality.
Signed-off-by: Vlad Buslov <vladbu@mellanox.com>
Acked-by: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/sched/act_gact.c')
-rw-r--r-- | net/sched/act_gact.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/sched/act_gact.c b/net/sched/act_gact.c index 569cec63d4c3..a7e3d5621608 100644 --- a/net/sched/act_gact.c +++ b/net/sched/act_gact.c @@ -161,7 +161,7 @@ static int tcf_gact_act(struct sk_buff *skb, const struct tc_action *a, action = gact_rand[ptype](gact); } #endif - bstats_cpu_update(this_cpu_ptr(gact->common.cpu_bstats), skb); + tcf_action_update_bstats(&gact->common, skb); if (action == TC_ACT_SHOT) qstats_drop_inc(this_cpu_ptr(gact->common.cpu_qstats)); |