summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChuhong Yao <ych@panath.cn>2018-05-22 22:33:29 +0800
committerFerruh Yigit <ferruh.yigit@intel.com>2018-05-23 00:35:01 +0200
commitfe242d514d1ae8e7c73b6f3a14bf2578ebe55091 (patch)
treedeb3346ffb5ce273acd362ea1aaac90302c5d0c1
parent65ee636872ebd13b85bb0bebeb3cade56f94e6f1 (diff)
downloaddpdk-fe242d514d1ae8e7c73b6f3a14bf2578ebe55091.zip
dpdk-fe242d514d1ae8e7c73b6f3a14bf2578ebe55091.tar.gz
dpdk-fe242d514d1ae8e7c73b6f3a14bf2578ebe55091.tar.xz
net/liquidio: fix link state fetching during start
Clear link state information during device start for fetching new state before function completion. Fixes: 605164c8e79d ("net/liquidio: add API to validate VF MTU") Cc: stable@dpdk.org Signed-off-by: Chuhong Yao <ych@panath.cn> Acked-by: Shijith Thotton <shijith.thotton@caviumnetworks.com>
-rw-r--r--drivers/net/liquidio/lio_ethdev.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/net/liquidio/lio_ethdev.c b/drivers/net/liquidio/lio_ethdev.c
index 0e0b5d8..64b1b86 100644
--- a/drivers/net/liquidio/lio_ethdev.c
+++ b/drivers/net/liquidio/lio_ethdev.c
@@ -1405,6 +1405,11 @@ lio_dev_start(struct rte_eth_dev *eth_dev)
/* Configure RSS if device configured with multiple RX queues. */
lio_dev_mq_rx_configure(eth_dev);
+ /* Before update the link info,
+ * must set linfo.link.link_status64 to 0.
+ */
+ lio_dev->linfo.link.link_status64 = 0;
+
/* start polling for lsc */
ret = rte_eal_alarm_set(LIO_LSC_TIMEOUT,
lio_sync_link_state_check,