summaryrefslogtreecommitdiff
path: root/drivers/net/fm10k
diff options
context:
space:
mode:
authorFerruh Yigit <ferruh.yigit@intel.com>2018-04-17 12:30:35 +0100
committerFerruh Yigit <ferruh.yigit@intel.com>2018-04-27 15:54:56 +0100
commit3fef0822ecd12e551b41c2f1d896c1db49142794 (patch)
treecc8b84c37d9acd7c6914739c065aea3d1eed3e1b /drivers/net/fm10k
parent8ccb7d672695ca89caf4d029e5767c2d27f49d5c (diff)
downloaddpdk-next-eventdev-3fef0822ecd12e551b41c2f1d896c1db49142794.zip
dpdk-next-eventdev-3fef0822ecd12e551b41c2f1d896c1db49142794.tar.gz
dpdk-next-eventdev-3fef0822ecd12e551b41c2f1d896c1db49142794.tar.xz
drivers/net: update link status
Update link status related feature document items and minor updates in some link status related functions. Signed-off-by: Ferruh Yigit <ferruh.yigit@intel.com> Acked-by: Adrien Mazarguil <adrien.mazarguil@6wind.com>
Diffstat (limited to 'drivers/net/fm10k')
-rw-r--r--drivers/net/fm10k/fm10k_ethdev.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/drivers/net/fm10k/fm10k_ethdev.c b/drivers/net/fm10k/fm10k_ethdev.c
index 34affd1..7dfeddf 100644
--- a/drivers/net/fm10k/fm10k_ethdev.c
+++ b/drivers/net/fm10k/fm10k_ethdev.c
@@ -1260,13 +1260,11 @@ fm10k_link_update(struct rte_eth_dev *dev,
FM10K_DEV_PRIVATE_TO_INFO(dev->data->dev_private);
PMD_INIT_FUNC_TRACE();
- /* The speed is ~50Gbps per Gen3 x8 PCIe interface. For now, we
- * leave the speed undefined since there is no 50Gbps Ethernet.
- */
- dev->data->dev_link.link_speed = 0;
+ dev->data->dev_link.link_speed = ETH_SPEED_NUM_50G;
dev->data->dev_link.link_duplex = ETH_LINK_FULL_DUPLEX;
dev->data->dev_link.link_status =
dev_info->sm_down ? ETH_LINK_DOWN : ETH_LINK_UP;
+ dev->data->dev_link.link_autoneg = ETH_LINK_FIXED;
return 0;
}