From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id B19B8A0487 for ; Sun, 30 Jun 2019 02:35:44 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 574D137B4; Sun, 30 Jun 2019 02:35:43 +0200 (CEST) Received: from mga17.intel.com (mga17.intel.com [192.55.52.151]) by dpdk.org (Postfix) with ESMTP id 2F23037AF; Sun, 30 Jun 2019 02:35:40 +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 fmsmga107.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 29 Jun 2019 17:35:39 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.63,433,1557212400"; d="scan'208";a="163317396" Received: from fmsmsx103.amr.corp.intel.com ([10.18.124.201]) by fmsmga008.fm.intel.com with ESMTP; 29 Jun 2019 17:35:39 -0700 Received: from fmsmsx113.amr.corp.intel.com (10.18.116.7) by FMSMSX103.amr.corp.intel.com (10.18.124.201) with Microsoft SMTP Server (TLS) id 14.3.439.0; Sat, 29 Jun 2019 17:35:39 -0700 Received: from shsmsx103.ccr.corp.intel.com (10.239.4.69) by FMSMSX113.amr.corp.intel.com (10.18.116.7) with Microsoft SMTP Server (TLS) id 14.3.439.0; Sat, 29 Jun 2019 17:35:39 -0700 Received: from shsmsx105.ccr.corp.intel.com ([169.254.11.232]) by SHSMSX103.ccr.corp.intel.com ([169.254.4.109]) with mapi id 14.03.0439.000; Sun, 30 Jun 2019 08:35:37 +0800 From: "Zhang, Qi Z" To: "Pei, Andy" , "dev@dpdk.org" CC: "Wu, Jingjing" , "Xing, Beilei" , "Yigit, Ferruh" , "Xu, Rosen" , "Ye, Xiaolong" , "Zhang, Roy Fan" , "stable@dpdk.org" Thread-Topic: [PATCH v2] net/i40e: i40e get link status update from ipn3ke Thread-Index: AQHVLY0qW5W6WLObVkSnsfpN+hPlLKazV5PQ Date: Sun, 30 Jun 2019 00:35:36 +0000 Message-ID: <039ED4275CED7440929022BC67E7061153D5C701@SHSMSX105.ccr.corp.intel.com> References: <1558602875-429451-1-git-send-email-andy.pei@intel.com> <1561710791-356325-1-git-send-email-andy.pei@intel.com> In-Reply-To: <1561710791-356325-1-git-send-email-andy.pei@intel.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-titus-metadata-40: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiOWYxMWI1NjEtYmFhYy00NDA2LWJiZDEtMTJlOGYyZjAxM2NmIiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX05UIn1dfV19LCJTdWJqZWN0TGFiZWxzIjpbXSwiVE1DVmVyc2lvbiI6IjE3LjEwLjE4MDQuNDkiLCJUcnVzdGVkTGFiZWxIYXNoIjoiNGVTWDJsemR5QTRuMnBnRmkxVDR1ekI3Tk1aOEp1MXArS2hCMGdSMWZ2N0hYblIweU9SYWVVcWlzWEMwS1JIayJ9 x-ctpclassification: CTP_NT dlp-product: dlpe-windows dlp-version: 11.0.600.7 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 v2] net/i40e: i40e get link status update from ipn3ke 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" > -----Original Message----- > From: Pei, Andy > Sent: Friday, June 28, 2019 4:33 PM > To: dev@dpdk.org > Cc: Pei, Andy ; Zhang, Qi Z ; W= u, > Jingjing ; Xing, Beilei ; Y= igit, > Ferruh ; Xu, Rosen ; Ye, > Xiaolong ; Zhang, Roy Fan > ; stable@dpdk.org > Subject: [PATCH v2] net/i40e: i40e get link status update from ipn3ke >=20 > Add switch_mode argument for i40e PF to specify the specific FPGA that i4= 0e > PF is connected to. i40e PF get link status update via the connected FPGA= . >=20 > Signed-off-by: Andy Pei > --- .... > @@ -2799,6 +2913,10 @@ void i40e_flex_payload_reg_set_default(struct > i40e_hw *hw) > else > update_link_aq(hw, &link, enable_lse, wait_to_complete); >=20 > + devargs =3D pci_dev->device.devargs; > + if (devargs) > + i40e_pf_linkstatus_get_from_switch_ethdev(devargs, &link); It's not necessary to check devargs every time we do i40e_dev_link_update,= =20 its better initialize the ipn3ke mode during initialization (add some field= in i40e_adapter maybe), so we can reuse the result at runtime > + ......