From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wm0-f67.google.com (mail-wm0-f67.google.com [74.125.82.67]) by dpdk.org (Postfix) with ESMTP id 237062BF2 for ; Wed, 23 May 2018 14:11:51 +0200 (CEST) Received: by mail-wm0-f67.google.com with SMTP id w194-v6so8298022wmf.2 for ; Wed, 23 May 2018 05:11:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=lW+w5MzAiCKpU2msOALqgcDowUJgOnL6zu0IHVNO+20=; b=YgI4cHFtkRhfjXaeLLrsgUtaN5fbBcPfDEmDjWGy0uVpO3d96MeVSABQssqOuDlK2O tGH2J5Oi8h4Yv4PA4TgJGMPQpk3K7Bnh9ZFWBRoAxheweVeH93xMk6js6pF0bTtPN8yZ KL2S5mCOee4sMReSBnsifTirfl9lx8aPrqqKwGmnStikwesXWWCXlQVsEArQH3n60a/O 7tmUshaUkYTK7sagUGpmagzU6SjS2+yDLYF+fWdlxWIKE34H21IRyztAYsDI+ciAxNfg 29GGPRdQBK0R0rbdy7QEg7d+0mxvKrY15BZXWIXPOrYBMbzvs5aM7u6eRIUqyQMXTsn+ 74iQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=lW+w5MzAiCKpU2msOALqgcDowUJgOnL6zu0IHVNO+20=; b=lumRNAZCLx8Xi+ALnrh8LBvd+metILYQhOOzDxO7MJSkYvPAo27QWHi+sehHi5NTIX rE2RaYnjTQDtj2RXqkmV+clysbCKtjpkB9ebJLp0vpKR4b7U9JBIMnyz/b6dmai1LWar cA/iMVPwQWuShWHYNQmp9YupVAZlFqtceloKJMi1L9owg7tuvwaigs5SBia5uwFcife6 2QgDD0VYujb/2l8XpZTsBTc8umqnzi5/p0uzbgAdrQoKY/kZ0eeq2x54cwhEz2VJNV4F G2zUhfFKPfXluOY1TwOsk+qUFpaz+MwhVpTkSLynSQDatwOKqe3mC6k0F/+TmTT6Uy48 ZQxg== X-Gm-Message-State: ALKqPwdu+vFT2o9+emhjICePvNkJragipKUKM1Itw0N5oAi7kjVGDIPE uvMxYEqAE6WrtixRfTcjPMI= X-Google-Smtp-Source: AB8JxZrw1k9t7B8aiJ44KjxMq0U/3oP5hzitcxbeKoxiD+zf1RtuOV7tgoeS9BshtD51espFSsW19A== X-Received: by 2002:a1c:1a49:: with SMTP id a70-v6mr4511366wma.77.1527077510826; Wed, 23 May 2018 05:11:50 -0700 (PDT) Received: from localhost ([2a00:23c5:be9a:5200:ce4c:82c0:d567:ecbb]) by smtp.gmail.com with ESMTPSA id b72-v6sm3397163wmf.2.2018.05.23.05.11.49 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 23 May 2018 05:11:49 -0700 (PDT) From: luca.boccassi@gmail.com To: Chuhong Yao Cc: Shijith Thotton , dpdk stable Date: Wed, 23 May 2018 13:10:10 +0100 Message-Id: <20180523121010.8385-59-luca.boccassi@gmail.com> X-Mailer: git-send-email 2.14.2 In-Reply-To: <20180523121010.8385-1-luca.boccassi@gmail.com> References: <20180516101323.2234-2-luca.boccassi@gmail.com> <20180523121010.8385-1-luca.boccassi@gmail.com> Subject: [dpdk-stable] patch 'net/liquidio: fix link state fetching during start' has been queued to stable release 18.02.2 X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches for DPDK stable branches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 23 May 2018 12:11:51 -0000 Hi, FYI, your patch has been queued to stable release 18.02.2 Note it hasn't been pushed to http://dpdk.org/browse/dpdk-stable yet. It will be pushed if I get no objections before 05/25/18. So please shout if anyone has objections. Thanks. Luca Boccassi --- >>From 0e5aa4bdc959d12b773db73e90f83b56193ac15c Mon Sep 17 00:00:00 2001 From: Chuhong Yao Date: Tue, 22 May 2018 22:33:29 +0800 Subject: [PATCH] net/liquidio: fix link state fetching during start [ upstream commit fe242d514d1ae8e7c73b6f3a14bf2578ebe55091 ] Clear link state information during device start for fetching new state before function completion. Fixes: 605164c8e79d ("net/liquidio: add API to validate VF MTU") Signed-off-by: Chuhong Yao Acked-by: Shijith Thotton --- drivers/net/liquidio/lio_ethdev.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/drivers/net/liquidio/lio_ethdev.c b/drivers/net/liquidio/lio_ethdev.c index eebe0b798..b0d201230 100644 --- a/drivers/net/liquidio/lio_ethdev.c +++ b/drivers/net/liquidio/lio_ethdev.c @@ -1441,6 +1441,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, -- 2.14.2