diff mbox series

[SRU,F:linux-bluefield,v1,2/5] Revert "net/sched: flower: Support hardware miss to tc action"

Message ID 20230422014706.594733-3-witu@nvidia.com
State New
Headers show
Series revert "Support hardware miss to tc action" | expand

Commit Message

William Tu April 22, 2023, 1:47 a.m. UTC
This reverts commit 85ec3adff4d54fefe9982025d591880b6bcfda83.
---
 net/sched/cls_flower.c | 13 +------------
 1 file changed, 1 insertion(+), 12 deletions(-)
diff mbox series

Patch

diff --git a/net/sched/cls_flower.c b/net/sched/cls_flower.c
index 2431456a58cd..3ef5206cbcbb 100644
--- a/net/sched/cls_flower.c
+++ b/net/sched/cls_flower.c
@@ -532,15 +532,6 @@  static struct cls_fl_filter *__fl_get(struct cls_fl_head *head, u32 handle)
 	return f;
 }
 
-static struct tcf_exts *fl_get_exts(const struct tcf_proto *tp, u32 handle)
-{
-	struct cls_fl_head *head = rcu_dereference_bh(tp->root);
-	struct cls_fl_filter *f;
-
-	f = idr_find(&head->handle_idr, handle);
-	return f ? &f->exts : NULL;
-}
-
 static int __fl_delete(struct tcf_proto *tp, struct cls_fl_filter *f,
 		       bool *last, bool rtnl_held,
 		       struct netlink_ext_ack *extack)
@@ -1872,8 +1863,7 @@  static int fl_change(struct net *net, struct sk_buff *in_skb,
 	}
 	fnew->handle = handle;
 
-	err = tcf_exts_init_ex(&fnew->exts, net, TCA_FLOWER_ACT, 0, tp, handle,
-			       !tc_skip_hw(fnew->flags));
+	err = tcf_exts_init(&fnew->exts, net, TCA_FLOWER_ACT, 0);
 	if (err < 0)
 		goto errout_idr;
 
@@ -2899,7 +2889,6 @@  static struct tcf_proto_ops cls_fl_ops __read_mostly = {
 	.tmplt_create	= fl_tmplt_create,
 	.tmplt_destroy	= fl_tmplt_destroy,
 	.tmplt_dump	= fl_tmplt_dump,
-	.get_exts	= fl_get_exts,
 	.owner		= THIS_MODULE,
 	.flags		= TCF_PROTO_OPS_DOIT_UNLOCKED,
 };