net/ice/base: workaround unexpected rule deletion
authorQi Zhang <qi.z.zhang@intel.com>
Thu, 23 Apr 2020 04:22:13 +0000 (12:22 +0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Tue, 5 May 2020 13:54:25 +0000 (15:54 +0200)
commita3a51cbc7a252eb07ec5f9233f41243ba0ff8299
tree9d766e71b6093b986684bdf2227de2624360a4f3
parentb58398d9f85bb959fb7f1ec208a637ff4827cbab
net/ice/base: workaround unexpected rule deletion

Ideally a rule with "TO VSI LIST" action should not be deleted when one
of the VF reset happens. The correct action by kernel PF driver is to
remove the VSI of a reset VF from the VSI list, but this is not
implemented in kernel PF yet, so workaround is the DCF to prevent a
rule with "To VSI List" action happens.

Signed-off-by: Qi Zhang <qi.z.zhang@intel.com>
Reviewed-by: Wei Zhao <wei.zhao1@intel.com>
drivers/net/ice/base/ice_switch.c