Fix the bug that after setting flow control parameters, link status
change (for example, set PHY power on/off) causes the port to no longer
receive packets.

Fixes: b9246b8fa280 ("net/ngbe: support link update")
Cc: sta...@dpdk.org

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

diff --git a/drivers/net/ngbe/ngbe_ethdev.c b/drivers/net/ngbe/ngbe_ethdev.c
index 039c3c35a8..e027e71b24 100644
--- a/drivers/net/ngbe/ngbe_ethdev.c
+++ b/drivers/net/ngbe/ngbe_ethdev.c
@@ -1961,6 +1961,8 @@ ngbe_dev_link_update_share(struct rte_eth_dev *dev,
                        wr32m(hw, NGBE_MACTXCFG, NGBE_MACTXCFG_SPEED_MASK,
                                NGBE_MACTXCFG_SPEED_1G | NGBE_MACTXCFG_TE);
                }
+               wr32m(hw, NGBE_MACRXFLT, NGBE_MACRXFLT_PROMISC,
+                       NGBE_MACRXFLT_PROMISC);
        }
 
        return rte_eth_linkstatus_set(dev, &link);
-- 
2.27.0

Reply via email to