Fix the bug that after setting flow control parameters, link status
change (for example, hot-plug SFP module) causes the port to no longer
receive packets.

Fixes: 0c061eadec59 ("net/txgbe: add link status change")
Cc: sta...@dpdk.org

Signed-off-by: Jiawen Wu <jiawe...@trustnetic.com>
---
 drivers/net/txgbe/txgbe_ethdev.c | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/drivers/net/txgbe/txgbe_ethdev.c b/drivers/net/txgbe/txgbe_ethdev.c
index 479cd810f8..e789e34c01 100644
--- a/drivers/net/txgbe/txgbe_ethdev.c
+++ b/drivers/net/txgbe/txgbe_ethdev.c
@@ -2957,6 +2957,11 @@ txgbe_dev_link_update_share(struct rte_eth_dev *dev,
                break;
        }
 
+       /* Re configure MAC RX */
+       if (hw->mac.type == txgbe_mac_raptor)
+               wr32m(hw, TXGBE_MACRXFLT, TXGBE_MACRXFLT_PROMISC,
+                       TXGBE_MACRXFLT_PROMISC);
+
        return rte_eth_linkstatus_set(dev, &link);
 }
 
-- 
2.27.0

Reply via email to