Skip to content

Commit 3578dc9

Browse files
WojDrewanguy11
authored andcommitted
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: 0d08a44 ("ice: ndo_setup_tc implementation for PF") Reported-by: Sridhar Samudrala <[email protected]> Signed-off-by: Wojciech Drewek <[email protected]> Tested-by: Sandeep Penigalapati <[email protected]> Signed-off-by: Tony Nguyen <[email protected]>
1 parent d4ea6f6 commit 3578dc9

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/net/ethernet/intel/ice/ice_tc_lib.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -524,6 +524,7 @@ ice_eswitch_add_tc_fltr(struct ice_vsi *vsi, struct ice_tc_flower_fltr *fltr)
524524
*/
525525
fltr->rid = rule_added.rid;
526526
fltr->rule_id = rule_added.rule_id;
527+
fltr->dest_id = rule_added.vsi_handle;
527528

528529
exit:
529530
kfree(list);

0 commit comments

Comments
 (0)