* [Intel-wired-lan] [PATCH net v2] ice: Fix switchdev rules book keeping
@ 2022-05-23 9:41 Wojciech Drewek
2022-06-17 7:57 ` Penigalapati, Sandeep
0 siblings, 1 reply; 2+ messages in thread
From: Wojciech Drewek @ 2022-05-23 9:41 UTC (permalink / raw)
To: intel-wired-lan
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: 0d08a441fb1a ("ice: ndo_setup_tc implementation for PF")
Reported-by: Sridhar Samudrala <sridhar.samudrala@intel.com>
Signed-off-by: Wojciech Drewek <wojciech.drewek@intel.com>
---
v2: compile issue fixed
---
drivers/net/ethernet/intel/ice/ice_tc_lib.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/net/ethernet/intel/ice/ice_tc_lib.c b/drivers/net/ethernet/intel/ice/ice_tc_lib.c
index 3acd9f921c44..4abf914a3b3e 100644
--- a/drivers/net/ethernet/intel/ice/ice_tc_lib.c
+++ b/drivers/net/ethernet/intel/ice/ice_tc_lib.c
@@ -524,6 +524,7 @@ ice_eswitch_add_tc_fltr(struct ice_vsi *vsi, struct ice_tc_flower_fltr *fltr)
*/
fltr->rid = rule_added.rid;
fltr->rule_id = rule_added.rule_id;
+ fltr->dest_id = rule_added.vsi_handle;
exit:
kfree(list);
--
2.31.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [Intel-wired-lan] [PATCH net v2] ice: Fix switchdev rules book keeping
2022-05-23 9:41 [Intel-wired-lan] [PATCH net v2] ice: Fix switchdev rules book keeping Wojciech Drewek
@ 2022-06-17 7:57 ` Penigalapati, Sandeep
0 siblings, 0 replies; 2+ messages in thread
From: Penigalapati, Sandeep @ 2022-06-17 7:57 UTC (permalink / raw)
To: Drewek, Wojciech, intel-wired-lan
>-----Original Message-----
>From: Intel-wired-lan <intel-wired-lan-bounces@osuosl.org> On Behalf Of
>Wojciech Drewek
>Sent: Monday, May 23, 2022 3:12 PM
>To: intel-wired-lan@lists.osuosl.org
>Subject: [Intel-wired-lan] [PATCH net v2] 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: 0d08a441fb1a ("ice: ndo_setup_tc implementation for PF")
>Reported-by: Sridhar Samudrala <sridhar.samudrala@intel.com>
>Signed-off-by: Wojciech Drewek <wojciech.drewek@intel.com>
>---
>v2: compile issue fixed
>---
> drivers/net/ethernet/intel/ice/ice_tc_lib.c | 1 +
> 1 file changed, 1 insertion(+)
>
Tested-by: Sandeep Penigalapati <sandeep.penigalapati@intel.com>
_______________________________________________
Intel-wired-lan mailing list
Intel-wired-lan@osuosl.org
https://lists.osuosl.org/mailman/listinfo/intel-wired-lan
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2022-06-17 7:58 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-05-23 9:41 [Intel-wired-lan] [PATCH net v2] ice: Fix switchdev rules book keeping Wojciech Drewek
2022-06-17 7:57 ` Penigalapati, Sandeep
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.