summaryrefslogtreecommitdiff
path: root/drivers/net/ena
diff options
context:
space:
mode:
authorRafal Kozik <rk@semihalf.com>2018-06-07 11:43:22 +0200
committerFerruh Yigit <ferruh.yigit@intel.com>2018-06-14 19:27:50 +0200
commit41e59028dd8ab2038a7655c6fc3098222661aa53 (patch)
tree8df0492bc5edd983ab4fbfce3989b2872eb78642 /drivers/net/ena
parentcacd18760652cc92d978d52edf07b327c144cc6f (diff)
downloaddpdk-next-eventdev-41e59028dd8ab2038a7655c6fc3098222661aa53.zip
dpdk-next-eventdev-41e59028dd8ab2038a7655c6fc3098222661aa53.tar.gz
dpdk-next-eventdev-41e59028dd8ab2038a7655c6fc3098222661aa53.tar.xz
net/ena: set link speed as none
Link speed should is not limited to 10Gb/s and it shouldn't be hardcoded. They link speed is set to none instead and the applications shouldn't rely on this value when using ENA PMD. Fixes: 1173fca25af9 ("ena: add polling-mode driver") Cc: stable@dpdk.org Signed-off-by: Rafal Kozik <rk@semihalf.com> Acked-by: Michal Krawczyk <mk@semihalf.com>
Diffstat (limited to 'drivers/net/ena')
-rw-r--r--drivers/net/ena/ena_ethdev.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ena/ena_ethdev.c b/drivers/net/ena/ena_ethdev.c
index 5c3b649..9ae73e3 100644
--- a/drivers/net/ena/ena_ethdev.c
+++ b/drivers/net/ena/ena_ethdev.c
@@ -848,7 +848,7 @@ static int ena_link_update(struct rte_eth_dev *dev,
adapter = (struct ena_adapter *)(dev->data->dev_private);
link->link_status = adapter->link_status ? ETH_LINK_UP : ETH_LINK_DOWN;
- link->link_speed = ETH_SPEED_NUM_10G;
+ link->link_speed = ETH_SPEED_NUM_NONE;
link->link_duplex = ETH_LINK_FULL_DUPLEX;
return 0;