]> git.proxmox.com Git - mirror_ovs.git/commit
netdev-tc-offloads: Don't delete ufid mapping if fail to delete filter
authorJianbo Liu <jianbol@nvidia.com>
Wed, 14 Oct 2020 10:31:04 +0000 (13:31 +0300)
committerSimon Horman <simon.horman@netronome.com>
Fri, 23 Oct 2020 14:20:46 +0000 (16:20 +0200)
commitdd8ca104acd76497f380828ca31e2bd6f49907ca
tree4214343f7377f159e9927c09c99c1a68b81b623a
parent04d140664a272fdbdd5352162ea9719b9c77cafe
netdev-tc-offloads: Don't delete ufid mapping if fail to delete filter

tc_replace_flower may fail, so the return value must be checked.
If not zero, ufid can't be deleted. Otherwise the operations on this
filter may fail because its ufid is not found.

Signed-off-by: Jianbo Liu <jianbol@nvidia.com>
Reviewed-by: Roi Dayan <roid@nvidia.com>
Signed-off-by: Simon Horman <simon.horman@netronome.com>
lib/netdev-offload-tc.c