diff mbox series

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

Message ID 20230410170853.492048-2-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 4e2c71089efa941210deaacb7f681039878057ed.
---
 net/sched/act_pedit.c | 11 -----------
 1 file changed, 11 deletions(-)
diff mbox series

Patch

diff --git a/net/sched/act_pedit.c b/net/sched/act_pedit.c
index 3224320549ad..b07a015b91ac 100644
--- a/net/sched/act_pedit.c
+++ b/net/sched/act_pedit.c
@@ -429,16 +429,6 @@  static int tcf_pedit_act(struct sk_buff *skb, const struct tc_action *a,
 	return p->tcf_action;
 }
 
-static void tcf_pedit_stats_update(struct tc_action *a, u64 bytes, u32 packets,
-				   u64 lastuse, bool hw)
-{
-	struct tcf_pedit *d = to_pedit(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 int tcf_pedit_dump(struct sk_buff *skb, struct tc_action *a,
 			  int bind, int ref)
 {
@@ -515,7 +505,6 @@  static struct tc_action_ops act_pedit_ops = {
 	.id		=	TCA_ID_PEDIT,
 	.owner		=	THIS_MODULE,
 	.act		=	tcf_pedit_act,
-	.stats_update	=	tcf_pedit_stats_update,
 	.dump		=	tcf_pedit_dump,
 	.cleanup	=	tcf_pedit_cleanup,
 	.init		=	tcf_pedit_init,