public inbox for netdev@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/2] ice: fix VF creation when !CONFIG_ICE_SWITCHDEV
@ 2026-04-29  6:51 Vincent Chen
  2026-04-29  6:51 ` [PATCH 1/2] ice: allow creating VFs " Vincent Chen
  2026-04-29  6:51 ` [PATCH 2/2] ice: remove redundant switchdev check in ice_eswitch_attach_vf() Vincent Chen
  0 siblings, 2 replies; 5+ messages in thread
From: Vincent Chen @ 2026-04-29  6:51 UTC (permalink / raw)
  To: anthony.l.nguyen, przemyslaw.kitszel
  Cc: andrew+netdev, davem, edumazet, kuba, pabeni, intel-wired-lan,
	netdev, vincent.chen

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


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2026-04-29  9:18 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-04-29  6:51 [PATCH 0/2] ice: fix VF creation when !CONFIG_ICE_SWITCHDEV Vincent Chen
2026-04-29  6:51 ` [PATCH 1/2] ice: allow creating VFs " Vincent Chen
2026-04-29  9:17   ` [Intel-wired-lan] " Loktionov, Aleksandr
2026-04-29  6:51 ` [PATCH 2/2] ice: remove redundant switchdev check in ice_eswitch_attach_vf() Vincent Chen
2026-04-29  9:18   ` [Intel-wired-lan] " Loktionov, Aleksandr

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox