summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPedro Tammela <pctammela@mojatatu.com>2023-02-15 00:15:34 +0300
committerPaolo Abeni <pabeni@redhat.com>2023-02-16 12:39:28 +0300
commit2d2e75d2d4a2245175d77899764b56e19c5769b4 (patch)
tree45bc5299e267357a6b3732102e4158227138b209
parent7afd073e5521bfc1045096802bc4dc640b63ed54 (diff)
downloadlinux-2d2e75d2d4a2245175d77899764b56e19c5769b4.tar.xz
net/sched: act_pedit: use percpu overlimit counter when available
Since act_pedit now has access to percpu counters, use the tcf_action_inc_overlimit_qstats wrapper that will use the percpu counter whenever they are available. Reviewed-by: Jamal Hadi Salim <jhs@mojatatu.com> Signed-off-by: Pedro Tammela <pctammela@mojatatu.com> Signed-off-by: Paolo Abeni <pabeni@redhat.com>
-rw-r--r--net/sched/act_pedit.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/net/sched/act_pedit.c b/net/sched/act_pedit.c
index 35ebe5d5c261..77d288d384ae 100644
--- a/net/sched/act_pedit.c
+++ b/net/sched/act_pedit.c
@@ -443,9 +443,7 @@ TC_INDIRECT_SCOPE int tcf_pedit_act(struct sk_buff *skb,
goto done;
bad:
- spin_lock(&p->tcf_lock);
- p->tcf_qstats.overlimits++;
- spin_unlock(&p->tcf_lock);
+ tcf_action_inc_overlimit_qstats(&p->common);
done:
return p->tcf_action;
}