net: sched: remove unused tcf_result extension
authorJamal Hadi Salim <jhs@mojatatu.com>
Mon, 19 Sep 2022 13:06:27 +0000 (13:06 +0000)
committerJakub Kicinski <kuba@kernel.org>
Thu, 22 Sep 2022 01:32:33 +0000 (18:32 -0700)
Added by:
commit e5cf1baf92cb ("act_mirred: use TC_ACT_REINSERT when possible")
but no longer useful.

Signed-off-by: Jamal Hadi Salim <jhs@mojatatu.com>
Link: https://lore.kernel.org/r/20220919130627.3551233-1-jhs@mojatatu.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
include/net/sch_generic.h
net/sched/act_mirred.c

index 7dc83400bde4859f9199b4eae808083dac39e71a..32819299937d117f64ba74dd7e389cc4aa0849a3 100644 (file)
@@ -326,11 +326,6 @@ struct tcf_result {
                };
                const struct tcf_proto *goto_tp;
 
-               /* used in the skb_tc_reinsert function */
-               struct {
-                       bool            ingress;
-                       struct gnet_stats_queue *qstats;
-               };
        };
 };
 
index f9c14d4188d441ba8cc7c71c5eae2d119415dc18..b8ad6ae282c02f2c194ffa3d1e3064963d695367 100644 (file)
@@ -305,8 +305,7 @@ static int tcf_mirred_act(struct sk_buff *skb, const struct tc_action *a,
 
                /* let's the caller reinsert the packet, if possible */
                if (use_reinsert) {
-                       res->ingress = want_ingress;
-                       err = tcf_mirred_forward(res->ingress, skb);
+                       err = tcf_mirred_forward(want_ingress, skb);
                        if (err)
                                tcf_action_inc_overlimit_qstats(&m->common);
                        __this_cpu_dec(mirred_rec_level);