[dpdk-dev] [PATCH] net/i40e: fix time sync for 25G
Luo, Michael
michael.luo at intel.com
Tue Mar 12 02:21:24 CET 2019
Verified the patch on DPDK 18.11.
Best regards,
Michael
-----Original Message-----
From: Zhang, Qi Z
Sent: Monday, March 11, 2019 3:42 PM
To: dev at dpdk.org
Cc: Luo, Michael <michael.luo at intel.com>; Zhang, Qi Z <qi.z.zhang at intel.com>; stable at dpdk.org
Subject: [PATCH] net/i40e: fix time sync for 25G
Time sync increment value is not configured for 25G device.
The patch fix this issue by setting the same value as 40G, this aligned with kernel driver's behaviour.
Fixes: 75d133dd3296 ("net/i40e: enable 25G device")
Cc: stable at dpdk.org
Reported-by: Michael Luo <michael.luo at intel.com>
Signed-off-by: Qi Zhang <qi.z.zhang at intel.com>
---
drivers/net/i40e/i40e_ethdev.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/net/i40e/i40e_ethdev.c b/drivers/net/i40e/i40e_ethdev.c index dca61f03a..8191a6a73 100644
--- a/drivers/net/i40e/i40e_ethdev.c
+++ b/drivers/net/i40e/i40e_ethdev.c
@@ -10830,6 +10830,7 @@ i40e_start_timecounters(struct rte_eth_dev *dev)
switch (link.link_speed) {
case ETH_SPEED_NUM_40G:
+ case ETH_SPEED_NUM_25G:
tsync_inc_l = I40E_PTP_40GB_INCVAL & 0xFFFFFFFF;
tsync_inc_h = I40E_PTP_40GB_INCVAL >> 32;
break;
--
2.13.6
More information about the dev
mailing list