Intel Wired LAN Driver Updates 2026-11-20 (ixgbe, ixgbevf, fm10k)
Subsystems (4)
Tony Nguyen
maintainerRichard Patel fixes an MDIO bus lifetime issue on ixgbe by converting to the managed MDIO registration over the driver's own handling.
Linkui Xiao preserves and restores the full ACI command data across retries for ixgbe.
Tomasz Lichwala fixes Hyper-V link speed reporting for E610, on ixgbevf, by obtaining the data from PCI config space.
Runyu Xiao prevents the service timer from being rearmed after removal by replacing timer_delete_sync() with timer_shutdown_sync() on fm10k.
The following are changes since commit 00f445721c7f0e48aaff9813cfe1c065c6eb3b71:
vsock/vmci: reject datagram binds in local network namespaces
and are available in the git repository at:
git://git.kernel.org/pub/scm/linux/kernel/git/tnguy/net-queue 10GbE
Linkui Xiao (1):
ixgbe: fix incomplete ACI command buffer backup on retry
Richard Patel (1):
ixgbe: fix MDIO bus lifetime
Runyu Xiao (1):
net: fm10k: shut down the service timer during removal
Tomasz Lichwala (1):
ixgbevf: fix link speed reporting for Hyper-V E610 VFs
drivers/net/ethernet/intel/fm10k/fm10k_pci.c | 2 +- drivers/net/ethernet/intel/ixgbe/ixgbe_e610.c | 7 +- drivers/net/ethernet/intel/ixgbe/ixgbe_main.c | 9 +-- drivers/net/ethernet/intel/ixgbe/ixgbe_phy.c | 2 +- drivers/net/ethernet/intel/ixgbevf/ethtool.c | 12 ++++ drivers/net/ethernet/intel/ixgbevf/vf.c | 68 ++++++++++++++++--- 6 files changed, 79 insertions(+), 21 deletions(-)
Signature · 1 line
2.47.1
Tony Nguyen
maintainerPATCH 1/4 ixgbe: fix MDIO bus lifetime
From: Richard Patel <[email protected]>
Plugging in an unsupported SFP module caused ixgbe NICs to get wedged permanently.
ixgbe unregisters the netdev when rejecting an SFP transceiver as unsupported.
ixgbe 0000:3b:00.0: failed to initialize because an unsupported SFP+ module type was detected. ixgbe 0000:3b:00.0: Reload the driver after installing a supported module. ixgbe 0000:3b:00.0: removed PHC on enp59s0
This code path failed to unregister an MDIO bus owned by that netdev, so when unregister_netdev() tries to tear it down (via device_del() -> devres_release_all() -> mdiobus_free()), it trips over the leaked registration.
ixgbe-mdio-0000:3b:00.0: not in UNREGISTERED state
WARNING: drivers/net/phy/mdio_bus_provider.c:711 at mdiobus_free+0x3d/0x50, CPU#21: kworker/u128:0/12
This prevents ixgbe from reloading, even after PCIe remove/rescan:
sysfs: cannot create duplicate filename '/class/mdio_bus/ixgbe-mdio-0000:3b:00.0'
Switch to devm_mdiobus_register(), drop custom unregister calls. This is safe because the bus is already devm-allocated, so unregister always happens before free.
--- drivers/net/ethernet/intel/ixgbe/ixgbe_main.c | 9 ++------- drivers/net/ethernet/intel/ixgbe/ixgbe_phy.c | 2 +- 2 files changed, 3 insertions(+), 8 deletions(-)
drivers/net/ethernet/intel/ixgbe/ixgbe_main.c +2 -7
@@ -8471,6 +8471,7 @@ static void ixgbe_sfp_detection_subtask(struct ixgbe_adapter *adapter)e_dev_err ("Reload the driver after installing a " "supported module.\n" );unregister_netdev (adapter->netdev); + adapter->mii_bus =NULL ; } }
@@ -8693,11 +8694,8 @@ static void ixgbe_service_task(struct work_struct *work) }if (ixgbe_check_fw_error (adapter)) {if (!test_bit (__IXGBE_DOWN, &adapter->state)) { -if (adapter->mii_bus) { -mdiobus_unregister (adapter->mii_bus); - adapter->mii_bus =NULL ; - }unregister_netdev (adapter->netdev); + adapter->mii_bus =NULL ; }ixgbe_service_event_complete (adapter);return ;
@@ -12110,9 +12108,6 @@ static void ixgbe_remove(struct pci_dev *pdev)if (adapter->hw.mac.type == ixgbe_mac_e610)ixgbe_disable_link_status_events (adapter); -if (adapter->mii_bus) -mdiobus_unregister (adapter->mii_bus); -#ifdef CONFIG_IXGBE_DCA if (adapter->flags &IXGBE_FLAG_DCA_ENABLED ) { adapter->flags &= ~IXGBE_FLAG_DCA_ENABLED ;
drivers/net/ethernet/intel/ixgbe/ixgbe_phy.c +1 -1
@@ -1086,7 +1086,7 @@ int ixgbe_mii_bus_init(struct ixgbe_hw *hw) hw->phy.mdio.mode_support =MDIO_SUPPORTS_C45 |MDIO_SUPPORTS_C22 ; adapter->mii_bus = bus; -return mdiobus_register (bus); +return devm_mdiobus_register (dev, bus); }/**
Signature · 1 line
2.47.1
Tony Nguyen
maintainerPATCH 2/4 ixgbe: fix incomplete ACI command buffer backup on retry
In reply to Tony NguyenFrom: Linkui Xiao <[email protected]>
ixgbe_aci_send_cmd() saves only the first byte of the caller's buffer before an EBUSY retry, using kmalloc() plus a single-byte store. When retries are exhausted, the caller's output buffer is filled with uninitialized slab bytes, because only the first byte was saved before the retry. The firmware itself does not see this data, since the retryable opcodes do not set LIBIE_AQ_FLAG_RD, but the caller still receives garbage in its output buffer.
Replace the kmalloc() plus single-byte store with kmemdup() so the whole indirect command buffer is saved before an EBUSY retry, skip the backup when buf_size is 0, and key the restore off buf_cpy instead of buf, exactly like ice_sq_send_cmd_retry() already does.
--- drivers/net/ethernet/intel/ixgbe/ixgbe_e610.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-)
drivers/net/ethernet/intel/ixgbe/ixgbe_e610.c +3 -4
@@ -214,11 +214,10 @@ int ixgbe_aci_send_cmd(struct ixgbe_hw *hw, struct libie_aq_desc *desc, is_cmd_for_retry =ixgbe_should_retry_aci_send_cmd_execute (opcode);if (is_cmd_for_retry) { -if (buf) { - buf_cpy =kmalloc (buf_size,GFP_KERNEL ); +if (buf && buf_size) { + buf_cpy =kmemdup (buf, buf_size,GFP_KERNEL );if (!buf_cpy)return -ENOMEM ; - *buf_cpy = *(u8 *)buf; } desc_cpy = *desc; }
@@ -234,7 +233,7 @@ int ixgbe_aci_send_cmd(struct ixgbe_hw *hw, struct libie_aq_desc *desc, last_status != LIBIE_AQ_RC_EBUSY)break ; -if (buf) +if (buf_cpy)memcpy (buf, buf_cpy, buf_size); *desc = desc_cpy;
Signature · 1 line
2.47.1
Tony Nguyen
maintainerPATCH 3/4 ixgbevf: fix link speed reporting for Hyper-V E610 VFs
In reply to Tony NguyenFrom: Tomasz Lichwala <[email protected]>
When an E610 VF is running under Hyper-V, the VFLINKS register does not carry valid link speed. The existing code reads speed from VFLINKS, which does not reflect the actual negotiated speed. This results in ethtool reporting a stale or incorrect link speed.
The Hyper-V synthetic NIC exposes the actual link status through emulated PCI config space at offset 0x209 in VFLINKS register format. Read and decode link status from there when checking link on E610 VFs.
To avoid generating unnecessary VMBus transactions on every watchdog cycle, read the PCI config register on demand when ethtool or sysfs queries link speed, rather than polling it periodically. The cached value is used by the watchdog and link state notifications as before.
Guard the PCI config space read with IS_ENABLED(CONFIG_PCI_MMCONFIG), since accessing offsets above 256 requires MMCONFIG support.
--- drivers/net/ethernet/intel/ixgbevf/ethtool.c | 12 ++++ drivers/net/ethernet/intel/ixgbevf/vf.c | 68 +++++++++++++++++--- 2 files changed, 72 insertions(+), 8 deletions(-)
drivers/net/ethernet/intel/ixgbevf/ethtool.c +12 -0
@@ -83,6 +83,18 @@ static int ixgbevf_get_link_ksettings(struct net_device *netdev, struct ethtool_link_ksettings *cmd) {struct ixgbevf_adapter *adapter =netdev_priv (netdev); +struct ixgbe_hw *hw = &adapter->hw; + +/* Hyper-V E610 VFs: read current link speed from PCI config space +* on every link speed query. +*/ +if (adapter->pdev->subsystem_device ==IXGBE_SUBDEV_ID_E610_VF_HV ) { +spin_lock_bh (&adapter->mbx_lock); + hw->mac.get_link_status = true; + hw->mac.ops.check_link (hw, &adapter->link_speed, + &adapter->link_up, false); +spin_unlock_bh (&adapter->mbx_lock); + }ethtool_link_ksettings_zero_link_mode (cmd, supported); ethtool_link_ksettings_add_link_mode(cmd, supported, 10000baseT_Full);
drivers/net/ethernet/intel/ixgbevf/vf.c +60 -8
108 lines not on this page · raw message
Signature · 1 line
2.47.1
Tony Nguyen
maintainerPATCH 4/4 net: fm10k: shut down the service timer during removal
In reply to Tony NguyenFrom: Runyu Xiao <[email protected]>
The fm10k service timer rearms itself from its callback. During PCI removal, timer_delete_sync() waits for a running callback but does not prevent a callback or another service path from rearming the timer. This can leave the timer referencing the fm10k_intfc after free_netdev().
Use timer_shutdown_sync() to permanently prevent rearming before teardown continues.
The issue was identified by code inspection. No runtime reproduction or trace demonstrating the failure is available.
The patch was not tested on real hardware. No hardware- or firmware-specific runtime result is available. Validation used source review and available build or emulation checks.
--- drivers/net/ethernet/intel/fm10k/fm10k_pci.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/net/ethernet/intel/fm10k/fm10k_pci.c +1 -1
@@ -2243,7 +2243,7 @@ static void fm10k_remove(struct pci_dev *pdev)struct fm10k_intfc *interface =pci_get_drvdata (pdev);struct net_device *netdev = interface->netdev; -timer_delete_sync (&interface->service_timer); +timer_shutdown_sync (&interface->service_timer);fm10k_stop_service_event (interface);fm10k_stop_macvlan_task (interface);
Signature · 1 line
2.47.1
[email protected]
AI reviewThis is an automated message. This series looks like a fix, but its commit messages seem to be missing some information:
Hi!
This is an automated message. This series looks like a fix, but its commit messages seem to be missing some information:
- How the issue was discovered, e.g. hit in production, hit during development, syzbot report, manual code inspection, LLM or static analysis tool scan.
- Whether the issue was actually triggered, or is only theoretical (e.g. found by LLM and not proven at runtime). If it was triggered please include the symptoms, like the stack trace or kernel messages.
- What hardware the change was tested on. For driver fixes please mention the device (and if relevant firmware version) used for testing, or say that the change was not tested on real hardware.
Please do not repost the series just to address the above. Instead, reply to this email with the missing information, so that reviewers can take it into account.
*IMPORTANT*: If you do repost (for other reasons) - please include the relevant info in the cover letter or commit messages.
Signature · 2 lines
The evaluation is done by an LLM so it may be wrong, if you think that is the case please reply and explain.