Patch "ice: Avoid setting default Rx VSI twice in switchdev setup" has been added to the 6.13-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: Avoid setting default Rx VSI twice in switchdev setup

to the 6.13-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-avoid-setting-default-rx-vsi-twice-in-switchdev-.patch
and it can be found in the queue-6.13 subdirectory.

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



commit b49c57a78debdb2016c876aa52336c495fdfa654
Author: Marcin Szycik <marcin.szycik@xxxxxxxxxxxxxxx>
Date:   Mon Feb 24 11:06:42 2025 -0800

    ice: Avoid setting default Rx VSI twice in switchdev setup
    
    [ Upstream commit 5c07be96d8b3f8447e980f29b967bf2e1d7ac732 ]
    
    As part of switchdev environment setup, uplink VSI is configured as
    default for both Tx and Rx. Default Rx VSI is also used by promiscuous
    mode. If promisc mode is enabled and an attempt to enter switchdev mode
    is made, the setup will fail because Rx VSI is already configured as
    default (rule exists).
    
    Reproducer:
      devlink dev eswitch set $PF1_PCI mode switchdev
      ip l s $PF1 up
      ip l s $PF1 promisc on
      echo 1 > /sys/class/net/$PF1/device/sriov_numvfs
    
    In switchdev setup, use ice_set_dflt_vsi() instead of plain
    ice_cfg_dflt_vsi(), which avoids repeating setting default VSI for Rx if
    it's already configured.
    
    Fixes: 50d62022f455 ("ice: default Tx rule instead of to queue")
    Reported-by: Sujai Buvaneswaran <sujai.buvaneswaran@xxxxxxxxx>
    Closes: https://lore.kernel.org/intel-wired-lan/PH0PR11MB50138B635F2E5CEB7075325D961F2@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
    Reviewed-by: Martyna Szapar-Mudlaw <martyna.szapar-mudlaw@xxxxxxxxxxxxxxx>
    Signed-off-by: Marcin Szycik <marcin.szycik@xxxxxxxxxxxxxxx>
    Reviewed-by: Simon Horman <horms@xxxxxxxxxx>
    Tested-by: Sujai Buvaneswaran <sujai.buvaneswaran@xxxxxxxxx>
    Signed-off-by: Tony Nguyen <anthony.l.nguyen@xxxxxxxxx>
    Link: https://patch.msgid.link/20250224190647.3601930-3-anthony.l.nguyen@xxxxxxxxx
    Signed-off-by: Jakub Kicinski <kuba@xxxxxxxxxx>
    Signed-off-by: Sasha Levin <sashal@xxxxxxxxxx>

diff --git a/drivers/net/ethernet/intel/ice/ice_eswitch.c b/drivers/net/ethernet/intel/ice/ice_eswitch.c
index fb527434b58b1..d649c197cf673 100644
--- a/drivers/net/ethernet/intel/ice/ice_eswitch.c
+++ b/drivers/net/ethernet/intel/ice/ice_eswitch.c
@@ -38,8 +38,7 @@ static int ice_eswitch_setup_env(struct ice_pf *pf)
 	if (ice_vsi_add_vlan_zero(uplink_vsi))
 		goto err_vlan_zero;
 
-	if (ice_cfg_dflt_vsi(uplink_vsi->port_info, uplink_vsi->idx, true,
-			     ICE_FLTR_RX))
+	if (ice_set_dflt_vsi(uplink_vsi))
 		goto err_def_rx;
 
 	if (ice_cfg_dflt_vsi(uplink_vsi->port_info, uplink_vsi->idx, true,




[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