summaryrefslogtreecommitdiff
path: root/drivers/net/i40e
diff options
context:
space:
mode:
authorQi Zhang <qi.z.zhang@intel.com>2019-03-11 15:42:20 +0800
committerFerruh Yigit <ferruh.yigit@intel.com>2019-03-20 18:15:42 +0100
commitd9263ab13886f8b25a324e40ddb205f1a3f71c6d (patch)
tree781475e7ce8d3a17b54e2dcc796690521b404225 /drivers/net/i40e
parent027412fe949c763fd4d536b13dcb4432f2df5534 (diff)
downloaddpdk-next-eventdev-d9263ab13886f8b25a324e40ddb205f1a3f71c6d.zip
dpdk-next-eventdev-d9263ab13886f8b25a324e40ddb205f1a3f71c6d.tar.gz
dpdk-next-eventdev-d9263ab13886f8b25a324e40ddb205f1a3f71c6d.tar.xz
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@dpdk.org Reported-by: Michael Luo <michael.luo@intel.com> Signed-off-by: Qi Zhang <qi.z.zhang@intel.com> Tested-by: Michael Luo <michael.luo@intel.com>
Diffstat (limited to 'drivers/net/i40e')
-rw-r--r--drivers/net/i40e/i40e_ethdev.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/i40e/i40e_ethdev.c b/drivers/net/i40e/i40e_ethdev.c
index dca61f0..8191a6a 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;