diff mbox series

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

Message ID 20230410170853.492048-3-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 f26fddebed52cb48ff101c56be2d60e69038a5a3.
---
 net/sched/act_sample.c | 11 -----------
 1 file changed, 11 deletions(-)
diff mbox series

Patch

diff --git a/net/sched/act_sample.c b/net/sched/act_sample.c
index f04ac8c4822d..ee3cefa180be 100644
--- a/net/sched/act_sample.c
+++ b/net/sched/act_sample.c
@@ -194,16 +194,6 @@  static int tcf_sample_act(struct sk_buff *skb, const struct tc_action *a,
 	return retval;
 }
 
-static void tcf_sample_stats_update(struct tc_action *a, u64 bytes, u64 packets,
-				    u64 drops, u64 lastuse, bool hw)
-{
-	struct tcf_sample *s = to_sample(a);
-	struct tcf_t *tm = &s->tcf_tm;
-
-	tcf_action_update_stats(a, bytes, packets, drops, hw);
-	tm->lastuse = max_t(u64, tm->lastuse, lastuse);
-}
-
 static int tcf_sample_dump(struct sk_buff *skb, struct tc_action *a,
 			   int bind, int ref)
 {
@@ -290,7 +280,6 @@  static struct tc_action_ops act_sample_ops = {
 	.id	  = TCA_ID_SAMPLE,
 	.owner	  = THIS_MODULE,
 	.act	  = tcf_sample_act,
-	.stats_update = tcf_sample_stats_update,
 	.dump	  = tcf_sample_dump,
 	.init	  = tcf_sample_init,
 	.cleanup  = tcf_sample_cleanup,