Intel Wired LAN Driver Updates 2024-07-11 (net/intel)
Subsystems (7)
Tony Nguyen
maintainerThis series contains updates to most Intel network drivers.
Tony removes MODULE_AUTHOR from drivers containing the entry.
Simon Horman corrects a kdoc entry for i40e.
Pawel adds implementation for devlink param "local_forwarding" on ice.
Michal removes unneeded call, and code, for eswitch rebuild for ice.
Sasha removed a no longer used field from igc.
The following are changes since commit 58f9416d413aa2c20b2515233ce450a1607ef843:
Merge branch 'ice-support-to-dump-phy-config-fec'
and are available in the git repository at:
git://git.kernel.org/pub/scm/linux/kernel/git/tnguy/next-queue 40GbE
Michal Swiatkowski (1):
ice: remove eswitch rebuild
Pawel Kaminski (1):
ice: Add support for devlink local_forwarding param
Sasha Neftin (1):
igc: Remove the internal 'eee_advert' field
Simon Horman (1):
i40e: correct i40e_addr_to_hkey() name in kdoc
Tony Nguyen (1):
net: intel: Remove MODULE_AUTHORs
Documentation/networking/devlink/ice.rst | 25 ++++ drivers/net/ethernet/intel/e100.c | 1 - drivers/net/ethernet/intel/e1000/e1000_main.c | 1 - drivers/net/ethernet/intel/e1000e/netdev.c | 1 - drivers/net/ethernet/intel/fm10k/fm10k_main.c | 1 - drivers/net/ethernet/intel/i40e/i40e.h | 2 +- drivers/net/ethernet/intel/i40e/i40e_main.c | 1 - drivers/net/ethernet/intel/iavf/iavf_main.c | 1 - .../net/ethernet/intel/ice/devlink/devlink.c | 126 ++++++++++++++++++ .../net/ethernet/intel/ice/ice_adminq_cmd.h | 11 +- drivers/net/ethernet/intel/ice/ice_common.c | 4 + drivers/net/ethernet/intel/ice/ice_eswitch.c | 16 --- drivers/net/ethernet/intel/ice/ice_eswitch.h | 6 - drivers/net/ethernet/intel/ice/ice_main.c | 3 - drivers/net/ethernet/intel/ice/ice_type.h | 1 + drivers/net/ethernet/intel/igb/igb_main.c | 1 - drivers/net/ethernet/intel/igbvf/netdev.c | 1 - drivers/net/ethernet/intel/igc/igc.h | 1 - drivers/net/ethernet/intel/igc/igc_ethtool.c | 6 - drivers/net/ethernet/intel/igc/igc_main.c | 4 - drivers/net/ethernet/intel/ixgbe/ixgbe_main.c | 1 - .../net/ethernet/intel/ixgbevf/ixgbevf_main.c | 1 - drivers/net/ethernet/intel/libeth/rx.c | 1 - drivers/net/ethernet/intel/libie/rx.c | 1 - 24 files changed, 167 insertions(+), 50 deletions(-)
Signature · 1 line
2.41.0
Tony Nguyen
maintainerPATCH 1/5 net: intel: Remove MODULE_AUTHORs
We are moving away from the Sourceforge email address. Rather than removing or updating the email for the affected entries, remove the MODULE_AUTHOR altogether as its usage is incorrect [1].
--- drivers/net/ethernet/intel/e100.c | 1 - drivers/net/ethernet/intel/e1000/e1000_main.c | 1 - drivers/net/ethernet/intel/e1000e/netdev.c | 1 - drivers/net/ethernet/intel/fm10k/fm10k_main.c | 1 - drivers/net/ethernet/intel/i40e/i40e_main.c | 1 - drivers/net/ethernet/intel/iavf/iavf_main.c | 1 - drivers/net/ethernet/intel/ice/ice_main.c | 1 - drivers/net/ethernet/intel/igb/igb_main.c | 1 - drivers/net/ethernet/intel/igbvf/netdev.c | 1 - drivers/net/ethernet/intel/igc/igc_main.c | 1 - drivers/net/ethernet/intel/ixgbe/ixgbe_main.c | 1 - drivers/net/ethernet/intel/ixgbevf/ixgbevf_main.c | 1 - drivers/net/ethernet/intel/libeth/rx.c | 1 - drivers/net/ethernet/intel/libie/rx.c | 1 - 14 files changed, 14 deletions(-)
drivers/net/ethernet/intel/e100.c +0 -1
@@ -161,7 +161,6 @@#define FIRMWARE_D102E "e100/d102e_ucode.bin"MODULE_DESCRIPTION (DRV_DESCRIPTION ); -MODULE_AUTHOR (DRV_COPYRIGHT );MODULE_LICENSE ("GPL v2" );MODULE_FIRMWARE (FIRMWARE_D101M );MODULE_FIRMWARE (FIRMWARE_D101S );
drivers/net/ethernet/intel/e1000/e1000_main.c +0 -1
@@ -187,7 +187,6 @@ static struct pci_driver e1000_driver = { .err_handler = &e1000_err_handler }; -MODULE_AUTHOR ("Intel Corporation, <[email protected]>" );MODULE_DESCRIPTION ("Intel(R) PRO/1000 Network Driver" );MODULE_LICENSE ("GPL v2" );
drivers/net/ethernet/intel/e1000e/netdev.c +0 -1
@@ -7969,7 +7969,6 @@ static void __exit e1000_exit_module(void) }module_exit (e1000_exit_module); -MODULE_AUTHOR ("Intel Corporation, <[email protected]>" );MODULE_DESCRIPTION ("Intel(R) PRO/1000 Network Driver" );MODULE_LICENSE ("GPL v2" );
drivers/net/ethernet/intel/fm10k/fm10k_main.c +0 -1
@@ -17,7 +17,6 @@ static const char fm10k_driver_string[] = DRV_SUMMARY;static const char fm10k_copyright[] ="Copyright(c) 2013 - 2019 Intel Corporation." ; -MODULE_AUTHOR ("Intel Corporation, <[email protected]>" );MODULE_DESCRIPTION (DRV_SUMMARY );MODULE_LICENSE ("GPL v2" );
drivers/net/ethernet/intel/i40e/i40e_main.c +0 -1
@@ -98,7 +98,6 @@ static int debug = -1;module_param (debug, uint,0 );MODULE_PARM_DESC (debug,"Debug level (0=none,...,16=all), Debug mask (0x8XXXXXXX)" ); -MODULE_AUTHOR ("Intel Corporation, <[email protected]>" );MODULE_DESCRIPTION ("Intel(R) Ethernet Connection XL710 Network Driver" );MODULE_IMPORT_NS (LIBIE );MODULE_LICENSE ("GPL v2" );
drivers/net/ethernet/intel/iavf/iavf_main.c +0 -1
@@ -45,7 +45,6 @@ static const struct pci_device_id iavf_pci_tbl[] = {MODULE_DEVICE_TABLE (pci, iavf_pci_tbl);MODULE_ALIAS ("i40evf" ); -MODULE_AUTHOR ("Intel Corporation, <[email protected]>" );MODULE_DESCRIPTION ("Intel(R) Ethernet Adaptive Virtual Function Network Driver" );MODULE_IMPORT_NS (LIBETH );MODULE_IMPORT_NS (LIBIE );
drivers/net/ethernet/intel/ice/ice_main.c +0 -1
@@ -35,7 +35,6 @@ static const char ice_copyright[] = "Copyright (c) 2018, Intel Corporation.";#define ICE_DDP_PKG_PATH "intel/ice/ddp/"#define ICE_DDP_PKG_FILE ICE_DDP_PKG_PATH "ice.pkg" -MODULE_AUTHOR ("Intel Corporation, <[email protected]>" );MODULE_DESCRIPTION (DRV_SUMMARY );MODULE_IMPORT_NS (LIBIE );MODULE_LICENSE ("GPL v2" );
drivers/net/ethernet/intel/igb/igb_main.c +0 -1
@@ -203,7 +203,6 @@ static const struct pci_error_handlers igb_err_handler = {static void igb_init_dmac (struct igb_adapter *adapter,u32 pba); -MODULE_AUTHOR ("Intel Corporation, <[email protected]>" );MODULE_DESCRIPTION ("Intel(R) Gigabit Ethernet Network Driver" );MODULE_LICENSE ("GPL v2" );
drivers/net/ethernet/intel/igbvf/netdev.c +0 -1
@@ -3001,7 +3001,6 @@ static void __exit igbvf_exit_module(void) }module_exit (igbvf_exit_module); -MODULE_AUTHOR ("Intel Corporation, <[email protected]>" );MODULE_DESCRIPTION ("Intel(R) Gigabit Virtual Function Network Driver" );MODULE_LICENSE ("GPL v2" );
drivers/net/ethernet/intel/igc/igc_main.c +0 -1
@@ -32,7 +32,6 @@static int debug =-1 ; -MODULE_AUTHOR ("Intel Corporation, <[email protected]>" );MODULE_DESCRIPTION (DRV_SUMMARY );MODULE_LICENSE ("GPL v2" );module_param (debug, int,0 );
drivers/net/ethernet/intel/ixgbe/ixgbe_main.c +0 -1
@@ -162,7 +162,6 @@ static int debug = -1;module_param (debug, int,0 );MODULE_PARM_DESC (debug,"Debug level (0=none,...,16=all)" ); -MODULE_AUTHOR ("Intel Corporation, <[email protected]>" );MODULE_DESCRIPTION ("Intel(R) 10 Gigabit PCI Express Network Driver" );MODULE_LICENSE ("GPL v2" );
drivers/net/ethernet/intel/ixgbevf/ixgbevf_main.c +0 -1
@@ -76,7 +76,6 @@ static const struct pci_device_id ixgbevf_pci_tbl[] = { };MODULE_DEVICE_TABLE (pci, ixgbevf_pci_tbl); -MODULE_AUTHOR ("Intel Corporation, <[email protected]>" );MODULE_DESCRIPTION ("Intel(R) 10 Gigabit Virtual Function Network Driver" );MODULE_LICENSE ("GPL v2" );
drivers/net/ethernet/intel/libeth/rx.c +0 -1
@@ -145,6 +145,5 @@ EXPORT_SYMBOL_NS_GPL(libeth_rx_pt_gen_hash_type, LIBETH);/* Module */ -MODULE_AUTHOR ("Intel Corporation" );MODULE_DESCRIPTION ("Common Ethernet library" );MODULE_LICENSE ("GPL" );
drivers/net/ethernet/intel/libie/rx.c +0 -1
@@ -118,7 +118,6 @@ const struct libeth_rx_pt libie_rx_pt_lut[LIBIE_RX_PT_NUM] = { };EXPORT_SYMBOL_NS_GPL (libie_rx_pt_lut,LIBIE ); -MODULE_AUTHOR ("Intel Corporation" );MODULE_DESCRIPTION ("Intel(R) Ethernet common library" );MODULE_IMPORT_NS (LIBETH );MODULE_LICENSE ("GPL" );
Signature · 1 line
2.41.0
Tony Nguyen
maintainerPATCH 2/5 i40e: correct i40e_addr_to_hkey() name in kdoc
In reply to Tony NguyenFrom: Simon Horman <[email protected]>
Correct name of i40e_addr_to_hkey() in it's kdoc.
kernel-doc -none reports:
drivers/net/ethernet/intel/i40e/i40e.h:739: warning: expecting prototype for i40e_mac_to_hkey(). Prototype was for i40e_addr_to_hkey() instead
--- drivers/net/ethernet/intel/i40e/i40e.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/net/ethernet/intel/i40e/i40e.h +1 -1
@@ -735,7 +735,7 @@ __i40e_pf_next_veb(struct i40e_pf *pf, int *idx) _i++, _veb = __i40e_pf_next_veb(_pf, &_i))/** -* i40e_mac_to_hkey - Convert a 6-byte MAC Address to a u64 hash key +* i40e_addr_to_hkey - Convert a 6-byte MAC Address to a u64 hash key * @macaddr: the MAC Address as the base key * * Simply copies the address and returns it as a u64 for hashing
Signature · 1 line
2.41.0
Tony Nguyen
maintainerPATCH 3/5 ice: Add support for devlink local_forwarding param
In reply to Tony NguyenFrom: Pawel Kaminski <[email protected]>
Add support for driver-specific devlink local_forwarding param. Supported values are "enabled", "disabled" and "prioritized". Default configuration is set to "enabled".
Add documentation in networking/devlink/ice.rst.
In previous generations of Intel NICs the transmit scheduler was only limited by PCIe bandwidth when scheduling/assigning hairpin-bandwidth between VFs. Changes to E810 HW design introduced scheduler limitation, so that available hairpin-bandwidth is bound to external port speed. In order to address this limitation and enable NFV services such as "service chaining" a knob to adjust the scheduler config was created. Driver can send a configuration message to the FW over admin queue and internal FW logic will reconfigure HW to prioritize and add more BW to VF to VF traffic. An end result, for example, 10G port will no longer limit hairpin-bandwidth to 10G and much higher speeds can be achieved.
Devlink local_forwarding param set to "prioritized" enables higher hairpin-bandwitdh on related PFs. Configuration is applicable only to 8x10G and 4x25G cards.
Changing local_forwarding configuration will trigger CORER reset in order to take effect.
Example command to change current value:
devlink dev param set pci/0000:b2:00.3 name local_forwarding \
value prioritized \
cmode runtime--- Documentation/networking/devlink/ice.rst | 25 ++++ .../net/ethernet/intel/ice/devlink/devlink.c | 126 ++++++++++++++++++ .../net/ethernet/intel/ice/ice_adminq_cmd.h | 11 +- drivers/net/ethernet/intel/ice/ice_common.c | 4 + drivers/net/ethernet/intel/ice/ice_type.h | 1 + 5 files changed, 166 insertions(+), 1 deletion(-)
Documentation/networking/devlink/ice.rst +25 -0
@@ -11,6 +11,7 @@ Parameters ========== .. list-table:: Generic parameters implemented + :widths: 5 5 90 * - Name - Mode
@@ -68,6 +69,30 @@ Parameters To verify that value has been set: $ devlink dev param show pci/0000:16:00.0 name tx_scheduling_layers +.. list-table:: Driver specific parameters implemented + :widths: 5 5 90 + + * - Name + - Mode + - Description + * - ``local_forwarding`` + - runtime + - Controls loopback behavior by tuning scheduler bandwidth. + It impacts all kinds of functions: physical, virtual and + subfunctions. + Supported values are: + + ``enabled`` - loopback traffic is allowed on port + + ``disabled`` - loopback traffic is not allowed on this port + + ``prioritized`` - loopback traffic is prioritized on this port + + Default value of ``local_forwarding`` parameter is ``enabled``. + ``prioritized`` provides ability to adjust loopback traffic rate to increase + one port capacity at cost of the another. User needs to disable + local forwarding on one of the ports in order have increased capacity + on the ``prioritized`` port. Info versions =============
drivers/net/ethernet/intel/ice/devlink/devlink.c +126 -0
141 lines not on this page · raw message
drivers/net/ethernet/intel/ice/ice_adminq_cmd.h +10 -1
@@ -232,6 +232,13 @@ struct ice_aqc_get_sw_cfg_resp_elem {#define ICE_AQC_GET_SW_CONF_RESP_IS_VF BIT(15) }; +/* Loopback port parameter mode values. */ +enum ice_local_fwd_mode { +ICE_LOCAL_FWD_MODE_ENABLED =0 , +ICE_LOCAL_FWD_MODE_DISABLED =1 , +ICE_LOCAL_FWD_MODE_PRIORITIZED =2 , +}; +/* Set Port parameters, (direct, 0x0203) */ struct ice_aqc_set_port_params {__le16 cmd_flags;
@@ -240,7 +247,9 @@ struct ice_aqc_set_port_params {__le16 swid;#define ICE_AQC_PORT_SWID_VALID BIT(15)#define ICE_AQC_PORT_SWID_M 0xFF -u8 reserved[10 ]; +u8 local_fwd_mode; +#define ICE_AQC_SET_P_PARAMS_LOCAL_FWD_MODE_VALID BIT(2) +u8 reserved[9 ]; };/* These resource type defines are used for all switch resource
drivers/net/ethernet/intel/ice/ice_common.c +4 -0
@@ -1086,6 +1086,7 @@ int ice_init_hw(struct ice_hw *hw) goto err_unroll_cqinit; } + hw->port_info->local_fwd_mode =ICE_LOCAL_FWD_MODE_ENABLED ;/* set the back pointer to HW */ hw->port_info->hw = hw;
@@ -3071,6 +3072,9 @@ ice_aq_set_port_params(struct ice_port_info *pi, bool double_vlan, cmd_flags |=ICE_AQC_SET_P_PARAMS_DOUBLE_VLAN_ENA ; cmd->cmd_flags =cpu_to_le16 (cmd_flags); + cmd->local_fwd_mode = pi->local_fwd_mode | +ICE_AQC_SET_P_PARAMS_LOCAL_FWD_MODE_VALID ; +return ice_aq_send_cmd (hw, &desc,NULL ,0 , cd); }
drivers/net/ethernet/intel/ice/ice_type.h +1 -0
@@ -738,6 +738,7 @@ struct ice_port_info {u16 sw_id;/* Initial switch ID belongs to port */ u16 pf_vf_num;u8 port_state; +u8 local_fwd_mode;#define ICE_SCHED_PORT_STATE_INIT 0x0#define ICE_SCHED_PORT_STATE_READY 0x1u8 lport;
Signature · 1 line
2.41.0
Tony Nguyen
maintainerPATCH 4/5 ice: remove eswitch rebuild
In reply to Tony NguyenFrom: Michal Swiatkowski <[email protected]>
Since the port representors are added one by one there is no need to do eswitch rebuild. Each port representor is detached and attached in VF reset path.
--- drivers/net/ethernet/intel/ice/ice_eswitch.c | 16 ---------------- drivers/net/ethernet/intel/ice/ice_eswitch.h | 6 ------ drivers/net/ethernet/intel/ice/ice_main.c | 2 -- 3 files changed, 24 deletions(-)
drivers/net/ethernet/intel/ice/ice_eswitch.c +0 -16
@@ -536,22 +536,6 @@ void ice_eswitch_detach(struct ice_pf *pf, struct ice_vf *vf)devl_unlock (devlink); } -/** -* ice_eswitch_rebuild - rebuild eswitch -* @pf: pointer to PF structure -*/ -void ice_eswitch_rebuild (struct ice_pf *pf) -{ -struct ice_repr *repr; -unsigned long id; - -if (!ice_is_switchdev_running (pf)) -return ; - -xa_for_each (&pf->eswitch.reprs, id, repr) -ice_eswitch_detach (pf, repr->vf); -} -/** * ice_eswitch_get_target - get netdev based on src_vsi from descriptor * @rx_ring: ring used to receive the packet
drivers/net/ethernet/intel/ice/ice_eswitch.h +0 -6
@@ -10,7 +10,6 @@void ice_eswitch_detach (struct ice_pf *pf,struct ice_vf *vf);int ice_eswitch_attach (struct ice_pf *pf,struct ice_vf *vf); -void ice_eswitch_rebuild (struct ice_pf *pf);int ice_eswitch_mode_get (struct devlink *devlink,u16 *mode);int
@@ -54,11 +53,6 @@ static inline int ice_eswitch_configure(struct ice_pf *pf)return 0 ; } -static inline int ice_eswitch_rebuild (struct ice_pf *pf) -{ -return -EOPNOTSUPP ; -} -static inline int ice_eswitch_mode_get (struct devlink *devlink,u16 *mode) {return DEVLINK_ESWITCH_MODE_LEGACY ;
drivers/net/ethernet/intel/ice/ice_main.c +0 -2
@@ -7702,8 +7702,6 @@ static void ice_rebuild(struct ice_pf *pf, enum ice_reset_req reset_type) goto err_vsi_rebuild; } -ice_eswitch_rebuild (pf); -if (reset_type ==ICE_RESET_PFR ) { err =ice_rebuild_channels (pf);if (err) {
Signature · 1 line
2.41.0
Tony Nguyen
maintainerPATCH 5/5 igc: Remove the internal 'eee_advert' field
In reply to Tony NguyenFrom: Sasha Neftin <[email protected]>
Since the kernel's 'ethtool_keee' structure is in use, the internal 'eee_advert' field becomes pointless and can be removed.
This patch comes to clean up this redundant code.
--- drivers/net/ethernet/intel/igc/igc.h | 1 - drivers/net/ethernet/intel/igc/igc_ethtool.c | 6 ------ drivers/net/ethernet/intel/igc/igc_main.c | 3 --- 3 files changed, 10 deletions(-)
drivers/net/ethernet/intel/igc/igc.h +0 -1
@@ -202,7 +202,6 @@ struct igc_adapter {struct net_device *netdev;struct ethtool_keee eee; -u16 eee_advert;unsigned long state;unsigned int flags;
drivers/net/ethernet/intel/igc/igc_ethtool.c +0 -6
@@ -1636,10 +1636,6 @@ static int igc_ethtool_get_eee(struct net_device *netdev,linkmode_set_bit (ETHTOOL_LINK_MODE_100baseT_Full_BIT, edata->supported); -if (hw->dev_spec._base.eee_enable) -mii_eee_cap1_mod_linkmode_t (edata->advertised, - adapter->eee_advert); - eeer =rd32 (IGC_EEER );/* EEE status on negotiated link */
@@ -1700,8 +1696,6 @@ static int igc_ethtool_set_eee(struct net_device *netdev,return -EINVAL ; } - adapter->eee_advert =linkmode_to_mii_eee_cap1_t (edata->advertised); -if (hw->dev_spec._base.eee_enable != edata->eee_enabled) { hw->dev_spec._base.eee_enable = edata->eee_enabled; adapter->flags |=IGC_FLAG_EEE ;
drivers/net/ethernet/intel/igc/igc_main.c +0 -3
@@ -4975,9 +4975,6 @@ void igc_up(struct igc_adapter *adapter)/* start the watchdog. */ hw->mac.get_link_status = true;schedule_work (&adapter->watchdog_task); - - adapter->eee_advert =MDIO_EEE_100TX |MDIO_EEE_1000T | -MDIO_EEE_2_5GT ; }/**
Signature · 1 line
2.41.0
This series was applied to netdev/net-next.git (main) by Tony Nguyen <[email protected]>:
Hello:
This series was applied to netdev/net-next.git (main) by Tony Nguyen <[email protected]>:
Quoted 9 lines · On Thu, 11 Jul 2024 13:19:25 -0700 you wrote:
This series contains updates to most Intel network drivers.
Tony removes
MODULE_AUTHORfrom drivers containing the entry.Simon Horman corrects a kdoc entry for i40e.
Pawel adds implementation for devlink param "
local_forwarding" on ice.[...]
Here is the summary with links:
- [net-next,1/5] net: intel: Remove MODULE_AUTHORs
https://git.kernel.org/netdev/net-next/c/bf130ed3aaa3 - [net-next,2/5] i40e: correct i40e_addr_to_hkey() name in kdoc https://git.kernel.org/netdev/net-next/c/4c8c36fe4e3b - [net-next,3/5] ice: Add support for devlink local_forwarding param https://git.kernel.org/netdev/net-next/c/a59618b98543 - [net-next,4/5] ice: remove eswitch rebuild https://git.kernel.org/netdev/net-next/c/aff6e32cc7ff - [net-next,5/5] igc: Remove the internal 'eee_advert' field https://git.kernel.org/netdev/net-next/c/1712c9ee36d1
You are awesome, thank you!
Signature · 2 lines
Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/patchwork/pwbot.html