Skip to content

Commit

Permalink
net/txgbe: reconfigure MAC Rx when link update
Browse files Browse the repository at this point in the history
[ upstream commit 950a6954df134f8bff41fc7ad541a9c9730a4201 ]

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: 0c061ea ("net/txgbe: add link status change")

Signed-off-by: Jiawen Wu <jiawenwu@trustnetic.com>
  • Loading branch information
Jiawen Wu authored and bluca committed Oct 18, 2023
1 parent f3d6cc7 commit cc0f220
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions drivers/net/txgbe/txgbe_ethdev.c
Original file line number Diff line number Diff line change
Expand Up @@ -2540,6 +2540,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);
}

Expand Down

0 comments on commit cc0f220

Please sign in to comment.