[PATCH] net/igc: fix disabling timesync
Wenwu Ma
wenwux.ma at intel.com
Fri Mar 15 02:06:31 CET 2024
When disabling timesync, we should clear the IGC_RXPBS_CFG_TS_EN bit
of IGC_RXPBS, the patch fixes this.
Fixes: 4f6fbbf6f17d ("net/igc: support IEEE 1588 PTP")
Cc: stable at dpdk.org
Signed-off-by: Wenwu Ma <wenwux.ma at intel.com>
---
drivers/net/igc/igc_ethdev.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/net/igc/igc_ethdev.c b/drivers/net/igc/igc_ethdev.c
index 58c4f80927..690736b6d1 100644
--- a/drivers/net/igc/igc_ethdev.c
+++ b/drivers/net/igc/igc_ethdev.c
@@ -2853,7 +2853,7 @@ eth_igc_timesync_disable(struct rte_eth_dev *dev)
IGC_WRITE_REG(hw, IGC_TSYNCRXCTL, 0);
val = IGC_READ_REG(hw, IGC_RXPBS);
- val &= IGC_RXPBS_CFG_TS_EN;
+ val &= ~IGC_RXPBS_CFG_TS_EN;
IGC_WRITE_REG(hw, IGC_RXPBS, val);
val = IGC_READ_REG(hw, IGC_SRRCTL(0));
--
2.25.1
More information about the stable
mailing list