]> git.baikalelectronics.ru Git - kernel.git/commit
ice: Fix switchdev rules book keeping
authorWojciech Drewek <wojciech.drewek@intel.com>
Mon, 23 May 2022 09:41:55 +0000 (11:41 +0200)
committerTony Nguyen <anthony.l.nguyen@intel.com>
Tue, 21 Jun 2022 20:09:03 +0000 (13:09 -0700)
commit353f2f0ecbc6949a6feabd0d7fb5156c5c79a6be
treec12955ab4ab5f46738b0e6e120e7aaf9c8d626b6
parente3db49f3ac1a801102612bfcf177099e6a0cbf9a
ice: Fix switchdev rules book keeping

Adding two filters with same matching criteria ends up with
one rule in hardware with act = ICE_FWD_TO_VSI_LIST.
In order to remove them properly we have to keep the
information about vsi handle which is used in VSI bitmap
(ice_adv_fltr_mgmt_list_entry::vsi_list_info::vsi_map).

Fixes: b28d3d749c85 ("ice: ndo_setup_tc implementation for PF")
Reported-by: Sridhar Samudrala <sridhar.samudrala@intel.com>
Signed-off-by: Wojciech Drewek <wojciech.drewek@intel.com>
Tested-by: Sandeep Penigalapati <sandeep.penigalapati@intel.com>
Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
drivers/net/ethernet/intel/ice/ice_tc_lib.c