When flow-control is "rx on, tx on", the "Pause" bit alone should be advertised, as per te linkmode_set_pause() implementation, which follows the 802.3 specs.
The Asym bit is for asymetric configs, such as "rx on tx off" or "rx off tx on". Let's align with the specs and not advertise ASYM for full flow control. Tested on I350-T4 PCIe cards. Signed-off-by: Maxime Chevallier <[email protected]> --- drivers/net/ethernet/intel/igb/e1000_phy.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/net/ethernet/intel/igb/e1000_phy.c b/drivers/net/ethernet/intel/igb/e1000_phy.c index cd65008c7ef5..98dda73d507b 100644 --- a/drivers/net/ethernet/intel/igb/e1000_phy.c +++ b/drivers/net/ethernet/intel/igb/e1000_phy.c @@ -1043,7 +1043,8 @@ static s32 igb_phy_setup_autoneg(struct e1000_hw *hw) /* Flow control (both RX and TX) is enabled by a software * over-ride. */ - mii_autoneg_adv_reg |= (NWAY_AR_ASM_DIR | NWAY_AR_PAUSE); + mii_autoneg_adv_reg |= NWAY_AR_PAUSE; + mii_autoneg_adv_reg &= ~NWAY_AR_ASM_DIR; break; default: hw_dbg("Flow control param set incorrectly\n"); -- 2.56.1
