Skip to content

Commit 48e01e3

Browse files
robert-scgregkh
authored andcommitted
ixgbe: Document how to enable NBASE-T support
[ Upstream commit 271225f ] Commit a296d66 ("ixgbe: Add ethtool support to enable 2.5 and 5.0 Gbps support") introduced suppression of the advertisement of NBASE-T speeds by default, according to Todd Fujinaka to accommodate customers with network switches which could not cope with advertised NBASE-T speeds, as posted in the E1000-devel mailing list: https://sourceforge.net/p/e1000/mailman/message/37106269/ However, the suppression was not documented at all, nor was how to enable NBASE-T support. Properly document the NBASE-T suppression and how to enable NBASE-T support. Fixes: a296d66 ("ixgbe: Add ethtool support to enable 2.5 and 5.0 Gbps support") Reported-by: Robert Schlabbach <robert_s@gmx.net> Signed-off-by: Robert Schlabbach <robert_s@gmx.net> Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com> Signed-off-by: Sasha Levin <sashal@kernel.org>
1 parent 776ed8b commit 48e01e3

2 files changed

Lines changed: 20 additions & 0 deletions

File tree

  • Documentation/networking/device_drivers/ethernet/intel
  • drivers/net/ethernet/intel/ixgbe

‎Documentation/networking/device_drivers/ethernet/intel/ixgbe.rst‎

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -440,6 +440,22 @@ NOTE: For 82599-based network connections, if you are enabling jumbo frames in
440440
a virtual function (VF), jumbo frames must first be enabled in the physical
441441
function (PF). The VF MTU setting cannot be larger than the PF MTU.
442442

443+
NBASE-T Support
444+
---------------
445+
The ixgbe driver supports NBASE-T on some devices. However, the advertisement
446+
of NBASE-T speeds is suppressed by default, to accommodate broken network
447+
switches which cannot cope with advertised NBASE-T speeds. Use the ethtool
448+
command to enable advertising NBASE-T speeds on devices which support it::
449+
450+
ethtool -s eth? advertise 0x1800000001028
451+
452+
On Linux systems with INTERFACES(5), this can be specified as a pre-up command
453+
in /etc/network/interfaces so that the interface is always brought up with
454+
NBASE-T support, e.g.::
455+
456+
iface eth? inet dhcp
457+
pre-up ethtool -s eth? advertise 0x1800000001028 || true
458+
443459
Generic Receive Offload, aka GRO
444460
--------------------------------
445461
The driver supports the in-kernel software implementation of GRO. GRO has

‎drivers/net/ethernet/intel/ixgbe/ixgbe_main.c‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5532,6 +5532,10 @@ static int ixgbe_non_sfp_link_config(struct ixgbe_hw *hw)
55325532
if (!speed && hw->mac.ops.get_link_capabilities) {
55335533
ret = hw->mac.ops.get_link_capabilities(hw, &speed,
55345534
&autoneg);
5535+
/* remove NBASE-T speeds from default autonegotiation
5536+
* to accommodate broken network switches in the field
5537+
* which cannot cope with advertised NBASE-T speeds
5538+
*/
55355539
speed &= ~(IXGBE_LINK_SPEED_5GB_FULL |
55365540
IXGBE_LINK_SPEED_2_5GB_FULL);
55375541
}

0 commit comments

Comments
 (0)