Skip to contentSkip to conversation

net/i40e: fix time sync for 25G

PATCH In review Qi Zhang 2 participants 3 messages Mar 11, 2019 – Mar 12, 2019 Network drivers

lore
Share & tools
lore

Qi Zhang

author
#0 lore raw

PATCH 1/1 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")
---
 drivers/net/i40e/i40e_ethdev.c | 1 +
 1 file changed, 1 insertion(+)
drivers/net/i40e/i40e_ethdev.c +1 -0
index dca61f03a..8191a6a73 100644
@@ -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;
Signature · 1 line
2.13.6
#1 lore raw

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: [email protected]
Cc: Luo, Michael <[email protected]>; Zhang, Qi Z <[email protected]>; [email protected]
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")
---
 drivers/net/i40e/i40e_ethdev.c | 1 +
 1 file changed, 1 insertion(+)
drivers/net/i40e/i40e_ethdev.c +1 -0
@@ -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

author Applied
#2 lore raw
Quoted 24 lines

-----Original Message-----
From: Luo, Michael
Sent: Tuesday, March 12, 2019 9:21 AM
To: Zhang, Qi Z <[email protected]>; [email protected]
Cc: [email protected]
Subject: RE: [PATCH] net/i40e: fix time sync for 25G

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: [email protected]
Cc: Luo, Michael <[email protected]>; Zhang, Qi Z <[email protected]>; [email protected]
Subject: [PATCH] net/i40e: fix time sync for 25G

Time sync increment value is not configured for 25G device.

Quoted 8 lines

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")

Applied to dpdk-next-net-intel.

Thanks
Qi