]> git.baikalelectronics.ru Git - kernel.git/commit
ice: allow creating VFs for !CONFIG_NET_SWITCHDEV
authorMaciej Fijalkowski <maciej.fijalkowski@intel.com>
Fri, 1 Apr 2022 12:54:38 +0000 (14:54 +0200)
committerTony Nguyen <anthony.l.nguyen@intel.com>
Thu, 14 Apr 2022 15:19:54 +0000 (08:19 -0700)
commitb12887d7270c0ea40df6e81e66cfd529d8eb6a01
tree172c6f27055a3f07b9cd5b9c4934843f52fcaf44
parent2d757b64cb3116827dec7536e4ed64d3d890f2f7
ice: allow creating VFs for !CONFIG_NET_SWITCHDEV

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@intel.com>
Fixes: e67b7e459de1 ("ice: set and release switchdev environment")
Signed-off-by: Maciej Fijalkowski <maciej.fijalkowski@intel.com>
Signed-off-by: Michal Swiatkowski <michal.swiatkowski@intel.com>
Tested-by: Konrad Jankowski <konrad0.jankowski@intel.com>
Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
drivers/net/ethernet/intel/ice/ice_eswitch.h