[SRU][F:linux-bluefield][PATCH] UBUNTU: SAUCE: net/sched: act_mirred: Reset ct when reinserting skb back into queue
Bodong Wang
bodong at nvidia.com
Fri Jul 9 03:25:40 UTC 2021
From: Roi Dayan <roid at nvidia.com>
BugLink: https://launchpad.net/bugs/1935584
When we reinsert an skb from ingress back into the ingress queue
for reclassification, we start from chain 0 so reset ct.
Signed-off-by: Roi Dayan <roid at nvidia.com>
Signed-off-by: Bodong Wang <bodong at nvidia.com>
---
net/sched/act_mirred.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/net/sched/act_mirred.c b/net/sched/act_mirred.c
index 5ae3e31..6556003 100644
--- a/net/sched/act_mirred.c
+++ b/net/sched/act_mirred.c
@@ -286,6 +286,8 @@ 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) {
+ if (want_ingress)
+ nf_reset_ct(skb);
res->ingress = want_ingress;
if (skb_tc_reinsert(skb, res))
tcf_action_inc_overlimit_qstats(&m->common);
--
1.8.3.1
More information about the kernel-team
mailing list