summaryrefslogtreecommitdiff
path: root/drivers/net/mlx5/mlx5_ethdev.c
diff options
context:
space:
mode:
authorShahaf Shuler <shahafs@mellanox.com>2018-05-01 12:58:48 +0300
committerFerruh Yigit <ferruh.yigit@intel.com>2018-05-14 22:31:48 +0100
commit7d2e32f76cfccdbc565738a9bfb9ca4512e7f238 (patch)
treeeb1dcdbd40151e19fe2fae23f0d07ecfca75892f /drivers/net/mlx5/mlx5_ethdev.c
parent088aed4b892e5e401af7fc5607c1eeaff563ebd1 (diff)
downloaddpdk-7d2e32f76cfccdbc565738a9bfb9ca4512e7f238.zip
dpdk-7d2e32f76cfccdbc565738a9bfb9ca4512e7f238.tar.gz
dpdk-7d2e32f76cfccdbc565738a9bfb9ca4512e7f238.tar.xz
net/mlx5: fix ethtool link setting call order
According to ethtool_link_setting API recommendation ETHTOOL_GLINKSETTINGS should be called before ETHTOOL_GSET as the later one deprecated. Fixes: f47ba80080ab ("net/mlx5: remove kernel version check") Signed-off-by: Shahaf Shuler <shahafs@mellanox.com> Acked-by: Nelio Laranjeiro <nelio.laranjeiro@6wind.com>
Diffstat (limited to 'drivers/net/mlx5/mlx5_ethdev.c')
-rw-r--r--drivers/net/mlx5/mlx5_ethdev.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/mlx5/mlx5_ethdev.c b/drivers/net/mlx5/mlx5_ethdev.c
index 746b94f..588d4ba 100644
--- a/drivers/net/mlx5/mlx5_ethdev.c
+++ b/drivers/net/mlx5/mlx5_ethdev.c
@@ -697,9 +697,9 @@ mlx5_link_update(struct rte_eth_dev *dev, int wait_to_complete)
time_t start_time = time(NULL);
do {
- ret = mlx5_link_update_unlocked_gset(dev, &dev_link);
+ ret = mlx5_link_update_unlocked_gs(dev, &dev_link);
if (ret)
- ret = mlx5_link_update_unlocked_gs(dev, &dev_link);
+ ret = mlx5_link_update_unlocked_gset(dev, &dev_link);
if (ret == 0)
break;
/* Handle wait to complete situation. */