[Intel-wired-lan] [PATCH 0/2] ice: fix VF creation when !CONFIG_ICE_SWITCHDEV

Vincent Chen vincent.chen at sifive.com
Wed Apr 29 06:51:25 UTC 2026


This patch series fixes an issue where VF creation fails when
CONFIG_ICE_SWITCHDEV is disabled.

When CONFIG_ICE_SWITCHDEV is disabled, the stub function
ice_eswitch_attach_vf() returns -EOPNOTSUPP, causing VF initialization to
fail even though basic VF functionality should work without switchdev
support.

The fix is split into two patches:
1. Add switchdev mode checks at caller sites to fix the immediate
   issue while maintaining backward compatibility. This ensures
   ice_eswitch_attach_vf() is only called when switchdev mode is
   enabled, consistent with how ice_eswitch_attach_sf() is handled.
2. Remove the now-redundant internal switchdev check from
   ice_eswitch_attach_vf().

Vincent Chen (2):
  ice: allow creating VFs when !CONFIG_ICE_SWITCHDEV
  ice: remove redundant switchdev check in ice_eswitch_attach_vf()

 drivers/net/ethernet/intel/ice/ice_eswitch.c |  3 ---
 drivers/net/ethernet/intel/ice/ice_sriov.c   | 14 ++++++++------
 drivers/net/ethernet/intel/ice/ice_vf_lib.c  |  3 ++-
 3 files changed, 10 insertions(+), 10 deletions(-)

-- 
2.34.1



More information about the Intel-wired-lan mailing list