diff options
author | Jakub Kicinski <kuba@kernel.org> | 2024-10-31 17:30:16 -0700 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2024-10-31 18:10:07 -0700 |
commit | 5b1c965956744d9b22fae7e9bca1c8e72355e1d0 (patch) | |
tree | 504f731de0a7ac9111de5c106cd360e4ff1c04af /drivers/net/ethernet/intel/ice/devlink/devlink_port.c | |
parent | 9e114ec8084020e10e1cb7b43dbbf6e69940866b (diff) | |
parent | 5635f189425e328097714c38341944fc40731f3d (diff) | |
download | linux-5b1c965956744d9b22fae7e9bca1c8e72355e1d0.tar.gz linux-5b1c965956744d9b22fae7e9bca1c8e72355e1d0.tar.bz2 linux-5b1c965956744d9b22fae7e9bca1c8e72355e1d0.zip |
Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net
Cross-merge networking fixes after downstream PR (net-6.12-rc6).
Conflicts:
drivers/net/wireless/intel/iwlwifi/mvm/mld-mac80211.c
cbe84e9ad5e2 ("wifi: iwlwifi: mvm: really send iwl_txpower_constraints_cmd")
188a1bf89432 ("wifi: mac80211: re-order assigning channel in activate links")
https://lore.kernel.org/all/20241028123621.7bbb131b@canb.auug.org.au/
net/mac80211/cfg.c
c4382d5ca1af ("wifi: mac80211: update the right link for tx power")
8dd0498983ee ("wifi: mac80211: Fix setting txpower with emulate_chanctx")
drivers/net/ethernet/intel/ice/ice_ptp_hw.h
6e58c3310622 ("ice: fix crash on probe for DPLL enabled E810 LOM")
e4291b64e118 ("ice: Align E810T GPIO to other products")
ebb2693f8fbd ("ice: Read SDP section from NVM for pin definitions")
ac532f4f4251 ("ice: Cleanup unused declarations")
https://lore.kernel.org/all/20241030120524.1ee1af18@canb.auug.org.au/
No adjacent changes.
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'drivers/net/ethernet/intel/ice/devlink/devlink_port.c')
-rw-r--r-- | drivers/net/ethernet/intel/ice/devlink/devlink_port.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/net/ethernet/intel/ice/devlink/devlink_port.c b/drivers/net/ethernet/intel/ice/devlink/devlink_port.c index 928c8bdb6649..c6779d9dffff 100644 --- a/drivers/net/ethernet/intel/ice/devlink/devlink_port.c +++ b/drivers/net/ethernet/intel/ice/devlink/devlink_port.c @@ -989,5 +989,11 @@ ice_devlink_port_new(struct devlink *devlink, if (err) return err; + if (!ice_is_eswitch_mode_switchdev(pf)) { + NL_SET_ERR_MSG_MOD(extack, + "SF ports are only supported in eswitch switchdev mode"); + return -EOPNOTSUPP; + } + return ice_alloc_dynamic_port(pf, new_attr, extack, devlink_port); } |