]> git.dujemihanovic.xyz Git - linux.git/commit
net: sched: cls_u32: Undo tcf_bind_filter if u32_replace_hw_knode
authorVictor Nogueira <victor@mojatatu.com>
Thu, 13 Jul 2023 18:05:11 +0000 (15:05 -0300)
committerDavid S. Miller <davem@davemloft.net>
Mon, 17 Jul 2023 06:33:38 +0000 (07:33 +0100)
commit9cb36faedeafb9720ac236aeae2ea57091d90a09
treeaaaf98dac069efea8733b9498aca7bda76f80949
parentb3d0e0489430735e2e7626aa37e6462cdd136e9d
net: sched: cls_u32: Undo tcf_bind_filter if u32_replace_hw_knode

When u32_replace_hw_knode fails, we need to undo the tcf_bind_filter
operation done at u32_set_parms.

Fixes: d34e3e181395 ("net: cls_u32: Add support for skip-sw flag to tc u32 classifier.")
Signed-off-by: Victor Nogueira <victor@mojatatu.com>
Acked-by: Jamal Hadi Salim <jhs@mojatatu.com>
Reviewed-by: Pedro Tammela <pctammela@mojatatu.com>
Reviewed-by: Simon Horman <simon.horman@corigine.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/sched/cls_u32.c