ACK: [SRU][F:linux-bluefield][PATCH] UBUNTU: SAUCE: net/sched: act_mirred: Reset ct when reinserting skb back into queue
Tim Gardner
tim.gardner at canonical.com
Fri Jul 9 11:32:54 UTC 2021
Acked-by: Tim Gardner <tim.gardner at canonical.com>
On 7/8/21 9:25 PM, Bodong Wang wrote:
> 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);
>
--
-----------
Tim Gardner
Canonical, Inc
More information about the kernel-team
mailing list