]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
ice: remove filters only if VSI is deleted
authorMichal Swiatkowski <michal.swiatkowski@linux.intel.com>
Mon, 13 Mar 2023 12:09:15 +0000 (13:09 +0100)
committerTony Nguyen <anthony.l.nguyen@intel.com>
Tue, 21 Mar 2023 17:02:48 +0000 (10:02 -0700)
commit7d46c0e670d5f646879b52bacc387bf48ff0e7f1
treedae200c3c8f054fa9bd651d072ceb78d9ea9d180
parent83b49e7f63da88a1544cba2b2e40bfabb24bd203
ice: remove filters only if VSI is deleted

Filters shouldn't be removed in VSI rebuild path. Removing them on PF
VSI results in no rule for PF MAC after changing for example queues
amount.

Remove all filters only in the VSI remove flow. As unload should also
cause the filter to be removed introduce, a new function ice_stop_eth().
It will unroll ice_start_eth(), so remove filters and close VSI.

Fixes: 6624e780a577 ("ice: split ice_vsi_setup into smaller functions")
Signed-off-by: Michal Swiatkowski <michal.swiatkowski@linux.intel.com>
Tested-by: Arpana Arland <arpanax.arland@intel.com> (A Contingent worker at Intel)
Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
drivers/net/ethernet/intel/ice/ice_lib.c
drivers/net/ethernet/intel/ice/ice_main.c