summaryrefslogtreecommitdiff
path: root/drivers/net/mlx5/mlx5_ethdev.c
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/mlx5/mlx5_ethdev.c
parent8ccb7d672695ca89caf4d029e5767c2d27f49d5c (diff)
downloaddpdk-3fef0822ecd12e551b41c2f1d896c1db49142794.zip
dpdk-3fef0822ecd12e551b41c2f1d896c1db49142794.tar.gz
dpdk-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/mlx5/mlx5_ethdev.c')
-rw-r--r--drivers/net/mlx5/mlx5_ethdev.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/mlx5/mlx5_ethdev.c b/drivers/net/mlx5/mlx5_ethdev.c
index ef44cc9..59d6a80 100644
--- a/drivers/net/mlx5/mlx5_ethdev.c
+++ b/drivers/net/mlx5/mlx5_ethdev.c
@@ -539,7 +539,7 @@ mlx5_link_update_unlocked_gset(struct rte_eth_dev *dev,
}
link_speed = ethtool_cmd_speed(&edata);
if (link_speed == -1)
- dev_link.link_speed = 0;
+ dev_link.link_speed = ETH_SPEED_NUM_NONE;
else
dev_link.link_speed = link_speed;
priv->link_speed_capa = 0;