From mboxrd@z Thu Jan 1 00:00:00 1970 From: yaochuhong Subject: [PATCH] net/liquidio:fix Unable to update lio_dev->linfo.link var Date: Mon, 21 May 2018 18:37:08 +0800 Message-ID: <1526899028-72619-1-git-send-email-ych@panath.cn> Cc: dev@dpdk.org, yaochuhong To: shijith.thotton@cavium.com Return-path: Received: from smtpbgsg2.qq.com (smtpbgsg2.qq.com [54.254.200.128]) by dpdk.org (Postfix) with ESMTP id D7B0BD14E for ; Mon, 21 May 2018 12:37:16 +0200 (CEST) List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" Signed-off-by: yaochuhong --- drivers/net/liquidio/lio_ethdev.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/net/liquidio/lio_ethdev.c b/drivers/net/liquidio/lio_ethdev.c index 0e0b5d8..ba39d20 100644 --- a/drivers/net/liquidio/lio_ethdev.c +++ b/drivers/net/liquidio/lio_ethdev.c @@ -1405,6 +1405,9 @@ struct rte_lio_xstats_name_off { /* 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, -- 1.8.3.1