From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) by dpdk.org (Postfix) with ESMTP id 6DDBA1C7B2 for ; Sun, 8 Apr 2018 04:05:22 +0200 (CEST) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by fmsmga105.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 07 Apr 2018 19:05:20 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.48,421,1517904000"; d="scan'208";a="30959262" Received: from fmsmsx106.amr.corp.intel.com ([10.18.124.204]) by fmsmga008.fm.intel.com with ESMTP; 07 Apr 2018 19:05:20 -0700 Received: from fmsmsx122.amr.corp.intel.com (10.18.125.37) by FMSMSX106.amr.corp.intel.com (10.18.124.204) with Microsoft SMTP Server (TLS) id 14.3.319.2; Sat, 7 Apr 2018 19:05:20 -0700 Received: from shsmsx102.ccr.corp.intel.com (10.239.4.154) by fmsmsx122.amr.corp.intel.com (10.18.125.37) with Microsoft SMTP Server (TLS) id 14.3.319.2; Sat, 7 Apr 2018 19:05:20 -0700 Received: from shsmsx103.ccr.corp.intel.com ([169.254.4.151]) by shsmsx102.ccr.corp.intel.com ([169.254.2.184]) with mapi id 14.03.0319.002; Sun, 8 Apr 2018 10:05:17 +0800 From: "Zhang, Qi Z" To: Chas Williams <3chas3@gmail.com>, "dev@dpdk.org" CC: "Lu, Wenzhuo" , "Ananyev, Konstantin" , "Charles (Chas) Williams" Thread-Topic: [dpdk-dev] [PATCH] net/ixgbe: update data->eth_link status on start Thread-Index: AQHTpR3pmAad0q+LHUyD1w5TDSVwfKP2cPXw Date: Sun, 8 Apr 2018 02:05:17 +0000 Message-ID: <039ED4275CED7440929022BC67E706115318A351@SHSMSX103.ccr.corp.intel.com> References: <20180213225618.15693-1-3chas3@gmail.com> In-Reply-To: <20180213225618.15693-1-3chas3@gmail.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: dlp-product: dlpe-windows dlp-version: 11.0.0.116 dlp-reaction: no-action x-originating-ip: [10.239.127.40] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Subject: Re: [dpdk-dev] [PATCH] net/ixgbe: update data->eth_link status on start 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: , X-List-Received-Date: Sun, 08 Apr 2018 02:05:24 -0000 > -----Original Message----- > From: dev [mailto:dev-bounces@dpdk.org] On Behalf Of Chas Williams > Sent: Wednesday, February 14, 2018 6:56 AM > To: dev@dpdk.org > Cc: Lu, Wenzhuo ; Ananyev, Konstantin > ; Charles (Chas) Williams > Subject: [dpdk-dev] [PATCH] net/ixgbe: update data->eth_link status on st= art >=20 > From: "Charles (Chas) Williams" >=20 > dev->data->eth_link isn't updated until the first interrupt. If a > link is carrier down, then this interrupt may never happen. Before we > finished starting the PMD, call ixgbe_dev_link_update() to ensure we have= a > valid status. >=20 > Signed-off-by: Chas Williams Acked-by: Qi Zhang > --- > drivers/net/ixgbe/ixgbe_ethdev.c | 4 ++++ > 1 file changed, 4 insertions(+) >=20 > diff --git a/drivers/net/ixgbe/ixgbe_ethdev.c > b/drivers/net/ixgbe/ixgbe_ethdev.c > index 37eb668..27d29dc 100644 > --- a/drivers/net/ixgbe/ixgbe_ethdev.c > +++ b/drivers/net/ixgbe/ixgbe_ethdev.c > @@ -2666,6 +2666,8 @@ ixgbe_dev_start(struct rte_eth_dev *dev) > if (err) > goto error; >=20 > + ixgbe_dev_link_update(dev, 0); > + > skip_link_setup: >=20 > if (rte_intr_allow_others(intr_handle)) { @@ -5033,6 +5035,8 @@ > ixgbevf_dev_start(struct rte_eth_dev *dev) >=20 > ixgbevf_dev_rxtx_start(dev); >=20 > + ixgbevf_dev_link_update(dev, 0); > + > /* check and configure queue intr-vector mapping */ > if (rte_intr_cap_multiple(intr_handle) && > dev->data->dev_conf.intr_conf.rxq) { > -- > 2.9.5