During an NVM update the PHY reset clears the Technology Ability Field (IEEE 802.3 clause 37 register 7.10) back to hardware defaults. When the driver subsequently calls only hw->mac.ops.fc_enable() the SRRCTL register is recalculated from stale autonegotiated capability bits, which the MDD (Malicious Driver Detect) logic treats as an invalid change and halts traffic on the PF. Fix by calling ixgbe_setup_fc() immediately before fc_enable() in ixgbe_watchdog_update_link() so that flow-control autoneg and the PHY registers are re-programmed in the correct order after any reset. Handle the failure path explicitly: if setup_fc() returns an error its output is invalid and calling fc_enable() on the unchanged hardware state would repeat the exact MDD-triggering condition the fix is meant to prevent. Skip fc_enable() in that case while still calling ixgbe_set_rx_drop_en() which configures the independent RX-drop behaviour. Fixes: 93c52dd0033b ("ixgbe: Merge watchdog functionality into service task") Suggested-by: Radoslaw Tyl Cc: stable@vger.kernel.org Signed-off-by: Aleksandr Loktionov --- v1 -> v2: - Add Fixes: tag; reroute to iwl-net; handle setup_fc() failure by skipping fc_enable() so stale FC state is never committed to hardware. drivers/net/ethernet/intel/ixgbe/ixgbe_main.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/drivers/net/ethernet/intel/ixgbe/ixgbe_main.c b/drivers/net/ethernet/intel/ixgbe/ixgbe_main.c index 210c7b9..fc3bae9 100644 --- a/drivers/net/ethernet/intel/ixgbe/ixgbe_main.c +++ b/drivers/net/ethernet/intel/ixgbe/ixgbe_main.c @@ -8029,6 +8029,13 @@ static void ixgbe_watchdog_update_link(struct ixgbe_adapter *adapter) pfc_en |= !!(adapter->ixgbe_ieee_pfc->pfc_en); if (link_up && !((adapter->flags & IXGBE_FLAG_DCB_ENABLED) && pfc_en)) { - hw->mac.ops.fc_enable(hw); + /* Re-program flow-control autoneg before applying the result. + * If setup_fc() fails its output is invalid; skip fc_enable() + * to avoid committing stale capability bits that trigger MDD. + */ + if (hw->mac.ops.setup_fc && hw->mac.ops.setup_fc(hw)) + e_warn(drv, "setup_fc failed, skipping fc_enable\n"); + else + hw->mac.ops.fc_enable(hw); ixgbe_set_rx_drop_en(adapter); } -- 2.52.0