From patchwork Mon May 21 01:06:06 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: chuhong yao X-Patchwork-Id: 40239 X-Patchwork-Delegate: ferruh.yigit@amd.com Return-Path: X-Original-To: patchwork@dpdk.org Delivered-To: patchwork@dpdk.org Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 4C4D58E7E; Mon, 21 May 2018 03:06:19 +0200 (CEST) Received: from smtpbgsg2.qq.com (smtpbgsg2.qq.com [54.254.200.128]) by dpdk.org (Postfix) with ESMTP id 1EC028E5E for ; Mon, 21 May 2018 03:06:14 +0200 (CEST) X-QQ-mid: bizesmtp22t1526864768t9u6olfu Received: from air5005.lan (unknown [113.116.53.132]) by esmtp6.qq.com (ESMTP) with id ; Mon, 21 May 2018 09:06:08 +0800 (CST) X-QQ-SSF: 01100000000000F09340B00A0000000 X-QQ-FEAT: JlEBx5H+23eHjysALBGw/vF+wGI7o9ZunnhAYAIgO7EGDS3psokqSQSPyrAX2 ctAVZMbzNCAEl/wyjG+NBxwsEftDqH0F8jhW6t4KITwXpG+vDOf/0my3YqgDLf7Xq1xU31m YqAqDvaGlagMj0KIZu1051VxJKHafgyeuc8lCCS18uOPN8f/xX50udZb81/nbGO9vRFBgN4 Yc6kJVeaiK3nJWSXL+W/ApU52zN/Fo01e+HWF/sy78WZrVbHlz8F3m3Y/oq4XdLcNVDEqa0 okPK5G+DSXWFyso/eHti05tfQ= X-QQ-GoodBg: 0 From: yaochuhong To: shijith.thotton@cavium.com Cc: dev@dpdk.org, yaochuhong Date: Mon, 21 May 2018 09:06:06 +0800 Message-Id: <1526864766-58835-1-git-send-email-ych@panath.cn> X-Mailer: git-send-email 1.8.3.1 X-QQ-SENDSIZE: 520 Feedback-ID: bizesmtp:panath.cn:qybgforeign:qybgforeign2 X-QQ-Bgrelay: 1 Subject: [dpdk-dev] [PATCH] net liquidio fix Unable to update lio_dev->linfo.link var X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list 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 | 6 ++++++ 1 file changed, 6 insertions(+) mode change 100644 => 100755 drivers/net/liquidio/lio_ethdev.c diff --git a/drivers/net/liquidio/lio_ethdev.c b/drivers/net/liquidio/lio_ethdev.c old mode 100644 new mode 100755 index 0e0b5d8..bd47911 --- a/drivers/net/liquidio/lio_ethdev.c +++ b/drivers/net/liquidio/lio_ethdev.c @@ -1405,6 +1405,12 @@ 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, set link_status64 to 0, + * Otherwise, when eth_dev->data->mtu != mtu, the link state information cannot be obtained, + * and lio_dev->intf_open will be set 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,