Revert "net/sched: flower: Fix wrong handle assignment during filter change"
authorVlad Buslov <vladbu@nvidia.com>
Thu, 4 May 2023 18:16:15 +0000 (20:16 +0200)
committerDavid S. Miller <davem@davemloft.net>
Fri, 5 May 2023 09:01:31 +0000 (10:01 +0100)
This reverts commit 32eff6bacec2cb574677c15378169a9fa30043ef.

Superseded by the following commit in this series.

Signed-off-by: Vlad Buslov <vladbu@nvidia.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/sched/cls_flower.c

index 4dc3a9007f30249fdb7a78ed509aed5b18f43817..ac4f344c52e04204cae803b1b704a33c95c61e42 100644 (file)
@@ -2231,8 +2231,8 @@ static int fl_change(struct net *net, struct sk_buff *in_skb,
                        kfree(fnew);
                        goto errout_tb;
                }
-               fnew->handle = handle;
        }
+       fnew->handle = handle;
 
        err = tcf_exts_init_ex(&fnew->exts, net, TCA_FLOWER_ACT, 0, tp, handle,
                               !tc_skip_hw(fnew->flags));