Fix the incorrect link status reported when binding the PMD after
the NIC has been initialized by the vendor driver.

Signed-off-by: Howard Wang <[email protected]>
---
 drivers/net/r8169/r8169_hw.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/drivers/net/r8169/r8169_hw.c b/drivers/net/r8169/r8169_hw.c
index acc16f3e48..27d52c81c9 100644
--- a/drivers/net/r8169/r8169_hw.c
+++ b/drivers/net/r8169/r8169_hw.c
@@ -1083,6 +1083,9 @@ rtl8125_hw_config(struct rtl_hw *hw)
 
        rtl_mac_ocp_write(hw, 0xE098, 0xC302);
 
+       /* Ensure the old mapping is used. */
+       RTL_W8(hw, INT_CFG0_8125, RTL_R8(hw, INT_CFG0_8125) & ~BIT_0);
+
        rtl_disable_cfg9346_write(hw);
 
        rte_delay_us(10);
-- 
2.34.1

Reply via email to