net/ice: fix flow redirector
authorBeilei Xing <beilei.xing@intel.com>
Wed, 22 Apr 2020 12:22:44 +0000 (20:22 +0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Wed, 22 Apr 2020 10:31:12 +0000 (12:31 +0200)
commitb09d34ac8584ece407283df898b59174fa612d58
treeebd64dbf87bea259181c5efd09abfc7b4e163214
parentfdfbfe7085934f3b84c5c8d89f4ab7d7016cb458
net/ice: fix flow redirector

If there's VF reset, the kernel PF will remove rules
associated with the reset VF no matter the HW VSI ID
is changed or not. So DCF should redirector all rules
associated with the reset VF no matter the HW VSI ID
is changed or not.

Fixes: 3b3757bda3c3 ("net/ice: get VF hardware index in DCF")
Fixes: c8183dd8e059 ("net/ice: redirect switch rule to new VSI")

Signed-off-by: Beilei Xing <beilei.xing@intel.com>
Acked-by: Haiyue Wang <haiyue.wang@intel.com>
drivers/net/ice/ice_dcf.c
drivers/net/ice/ice_dcf_parent.c