Patch "ice: Fix switchdev rules book keeping" has been added to the 5.18-stable tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This is a note to let you know that I've just added the patch titled

    ice: Fix switchdev rules book keeping

to the 5.18-stable tree which can be found at:
    http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary

The filename of the patch is:
     ice-fix-switchdev-rules-book-keeping.patch
and it can be found in the queue-5.18 subdirectory.

If you, or anyone else, feels it should not be added to the stable tree,
please let <stable@xxxxxxxxxxxxxxx> know about it.



commit e3f206a0aafb344403166e6bd8fd7aea2e846866
Author: Wojciech Drewek <wojciech.drewek@xxxxxxxxx>
Date:   Mon May 23 11:41:55 2022 +0200

    ice: Fix switchdev rules book keeping
    
    [ Upstream commit 3578dc90013b1fa20da996cdadd8515802716132 ]
    
    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@xxxxxxxxx>
    Signed-off-by: Wojciech Drewek <wojciech.drewek@xxxxxxxxx>
    Tested-by: Sandeep Penigalapati <sandeep.penigalapati@xxxxxxxxx>
    Signed-off-by: Tony Nguyen <anthony.l.nguyen@xxxxxxxxx>
    Signed-off-by: Sasha Levin <sashal@xxxxxxxxxx>

diff --git a/drivers/net/ethernet/intel/ice/ice_tc_lib.c b/drivers/net/ethernet/intel/ice/ice_tc_lib.c
index 734bfa121e24..2ce2694fcbd7 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);



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux