Commit 2d2e75d2 authored by Pedro Tammela's avatar Pedro Tammela Committed by Paolo Abeni

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: default avatarJamal Hadi Salim <jhs@mojatatu.com>
Signed-off-by: default avatarPedro Tammela <pctammela@mojatatu.com>
Signed-off-by: default avatarPaolo Abeni <pabeni@redhat.com>
parent 7afd073e
......@@ -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;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment