Patch "ice: allow creating VFs for !CONFIG_NET_SWITCHDEV" has been added to the 5.17-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: allow creating VFs for !CONFIG_NET_SWITCHDEV

to the 5.17-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-allow-creating-vfs-for-config_net_switchdev.patch
and it can be found in the queue-5.17 subdirectory.

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



commit 6dff737fdeaa5047aafae521f7e378094241a293
Author: Maciej Fijalkowski <maciej.fijalkowski@xxxxxxxxx>
Date:   Fri Apr 1 14:54:38 2022 +0200

    ice: allow creating VFs for !CONFIG_NET_SWITCHDEV
    
    [ Upstream commit aacca7a83b9753c562395ef328352dfd8c003c59 ]
    
    Currently for !CONFIG_NET_SWITCHDEV kernel builds it is not possible to
    create VFs properly as call to ice_eswitch_configure() returns
    -EOPNOTSUPP for us. This is because CONFIG_ICE_SWITCHDEV depends on
    CONFIG_NET_SWITCHDEV.
    
    Change the ice_eswitch_configure() implementation for
    !CONFIG_ICE_SWITCHDEV to return 0 instead -EOPNOTSUPP and let
    ice_ena_vfs() finish its work properly.
    
    CC: Grzegorz Nitka <grzegorz.nitka@xxxxxxxxx>
    Fixes: 1a1c40df2e80 ("ice: set and release switchdev environment")
    Signed-off-by: Maciej Fijalkowski <maciej.fijalkowski@xxxxxxxxx>
    Signed-off-by: Michal Swiatkowski <michal.swiatkowski@xxxxxxxxx>
    Tested-by: Konrad Jankowski <konrad0.jankowski@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_eswitch.h b/drivers/net/ethernet/intel/ice/ice_eswitch.h
index bd58d9d2e565..6a413331572b 100644
--- a/drivers/net/ethernet/intel/ice/ice_eswitch.h
+++ b/drivers/net/ethernet/intel/ice/ice_eswitch.h
@@ -52,7 +52,7 @@ static inline void ice_eswitch_update_repr(struct ice_vsi *vsi) { }
 
 static inline int ice_eswitch_configure(struct ice_pf *pf)
 {
-	return -EOPNOTSUPP;
+	return 0;
 }
 
 static inline int ice_eswitch_rebuild(struct ice_pf *pf)



[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