diff mbox series

[SRU,F:linux-bluefield,v1,3/3] Revert "sched: act_skbedit: Implement stats_update callback"

Message ID 20230410170853.492048-4-witu@nvidia.com
State New
Headers show
Series Revert Support hardware stats for tc actions | expand

Commit Message

William Tu April 10, 2023, 5:08 p.m. UTC
This reverts commit e3207cbfd11eeee7027069c2b34aa76d13d16464.
---
 net/sched/act_skbedit.c | 11 -----------
 1 file changed, 11 deletions(-)
diff mbox series

Patch

diff --git a/net/sched/act_skbedit.c b/net/sched/act_skbedit.c
index 21aa4ae1a4a2..9813c2ea8f50 100644
--- a/net/sched/act_skbedit.c
+++ b/net/sched/act_skbedit.c
@@ -73,16 +73,6 @@  static int tcf_skbedit_act(struct sk_buff *skb, const struct tc_action *a,
 	return TC_ACT_SHOT;
 }
 
-static void tcf_skbedit_stats_update(struct tc_action *a, u64 bytes,
-				     u32 packets, u64 lastuse, bool hw)
-{
-	struct tcf_skbedit *d = to_skbedit(a);
-	struct tcf_t *tm = &d->tcf_tm;
-
-	tcf_action_update_stats(a, bytes, packets, false, hw);
-	tm->lastuse = max_t(u64, tm->lastuse, lastuse);
-}
-
 static const struct nla_policy skbedit_policy[TCA_SKBEDIT_MAX + 1] = {
 	[TCA_SKBEDIT_PARMS]		= { .len = sizeof(struct tc_skbedit) },
 	[TCA_SKBEDIT_PRIORITY]		= { .len = sizeof(u32) },
@@ -331,7 +321,6 @@  static struct tc_action_ops act_skbedit_ops = {
 	.id		=	TCA_ID_SKBEDIT,
 	.owner		=	THIS_MODULE,
 	.act		=	tcf_skbedit_act,
-	.stats_update	=	tcf_skbedit_stats_update,
 	.dump		=	tcf_skbedit_dump,
 	.init		=	tcf_skbedit_init,
 	.cleanup	=	tcf_skbedit_cleanup,