summaryrefslogtreecommitdiffstats
path: root/net/sched/act_ct.c
diff options
context:
space:
mode:
authorVlad Buslov <vladbu@mellanox.com>2019-10-30 15:09:02 +0100
committerDavid S. Miller <davem@davemloft.net>2019-10-31 02:07:50 +0100
commit26b537a88ca5b7399c7ab0656e06dbd9da9513c1 (patch)
treeddbd17541c0dc871b712925bd5e5922b13f1ca75 /net/sched/act_ct.c
parentnet: sched: extract bstats update code into function (diff)
downloadlinux-26b537a88ca5b7399c7ab0656e06dbd9da9513c1.tar.xz
linux-26b537a88ca5b7399c7ab0656e06dbd9da9513c1.zip
net: sched: extract qstats update code into functions
Extract common code that increments cpu_qstats counters into standalone act API functions. Change hardware offloaded actions that use percpu counter allocation to use the new functions instead of accessing cpu_qstats 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_ct.c')
-rw-r--r--net/sched/act_ct.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/sched/act_ct.c b/net/sched/act_ct.c
index f9779907dcf7..eabae2227e13 100644
--- a/net/sched/act_ct.c
+++ b/net/sched/act_ct.c
@@ -469,7 +469,7 @@ out:
return retval;
drop:
- qstats_drop_inc(this_cpu_ptr(a->cpu_qstats));
+ tcf_action_inc_drop_qstats(&c->common);
return TC_ACT_SHOT;
}