From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by dpdk.org (Postfix) with ESMTP id 8FE4F377A for ; Wed, 12 Apr 2017 17:50:12 +0200 (CEST) Received: from orsmga001.jf.intel.com ([10.7.209.18]) by orsmga101.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 12 Apr 2017 08:50:11 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.37,191,1488873600"; d="scan'208";a="1118653226" Received: from irsmsx102.ger.corp.intel.com ([163.33.3.155]) by orsmga001.jf.intel.com with ESMTP; 12 Apr 2017 08:50:11 -0700 Received: from irsmsx112.ger.corp.intel.com (10.108.20.5) by IRSMSX102.ger.corp.intel.com (163.33.3.155) with Microsoft SMTP Server (TLS) id 14.3.319.2; Wed, 12 Apr 2017 16:50:10 +0100 Received: from irsmsx108.ger.corp.intel.com ([169.254.11.239]) by irsmsx112.ger.corp.intel.com ([169.254.1.61]) with mapi id 14.03.0319.002; Wed, 12 Apr 2017 16:50:10 +0100 From: "Iremonger, Bernard" To: "dev@dpdk.org" CC: "Xing, Beilei" , "Lu, Wenzhuo" Thread-Topic: [PATCH] net/i40e: reset NIC core Thread-Index: AQHSs5a6es10df6lWUyr0RKbqGuD/qHB4ZBw Date: Wed, 12 Apr 2017 15:50:10 +0000 Message-ID: <8CEF83825BEC744B83065625E567D7C224D53186@IRSMSX108.ger.corp.intel.com> References: <1492006284-13202-1-git-send-email-bernard.iremonger@intel.com> In-Reply-To: <1492006284-13202-1-git-send-email-bernard.iremonger@intel.com> Accept-Language: en-GB, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-titus-metadata-40: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiNjZhZmJlNmMtMTFhMS00YmNmLTgwNTktY2EwYjMwNGFkZGI3IiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX0lDIn1dfV19LCJTdWJqZWN0TGFiZWxzIjpbXSwiVE1DVmVyc2lvbiI6IjE2LjUuOS4zIiwiVHJ1c3RlZExhYmVsSGFzaCI6IlJiN1Z6bDVQaEZcL2VIc3M4ZlpPSVwvc2lGa2pcLzNSK25nTGZlSnBKa2NrNTg9In0= x-ctpclassification: CTP_IC dlp-product: dlpe-windows dlp-version: 10.0.102.7 dlp-reaction: no-action x-originating-ip: [163.33.239.180] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Subject: Re: [dpdk-dev] [PATCH] net/i40e: reset NIC core 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: Wed, 12 Apr 2017 15:50:14 -0000 > -----Original Message----- > From: Iremonger, Bernard > Sent: Wednesday, April 12, 2017 3:11 PM > To: dev@dpdk.org > Cc: Xing, Beilei ; Lu, Wenzhuo > ; Iremonger, Bernard > > Subject: [PATCH] net/i40e: reset NIC core >=20 > After a cloud filter has been replaced, to restore the NIC to it original= state a > reset of the NIC core is needed. > A core reset has been added to the eth_i40e_dev_init function. >=20 > Signed-off-by: Bernard Iremonger > --- > drivers/net/i40e/i40e_ethdev.c | 3 +++ > 1 file changed, 3 insertions(+) >=20 > diff --git a/drivers/net/i40e/i40e_ethdev.c b/drivers/net/i40e/i40e_ethde= v.c > index 59c603fb9..e119dbf00 100644 > --- a/drivers/net/i40e/i40e_ethdev.c > +++ b/drivers/net/i40e/i40e_ethdev.c > @@ -1077,6 +1077,9 @@ eth_i40e_dev_init(struct rte_eth_dev *dev) > hw->bus.func =3D pci_dev->addr.function; > hw->adapter_stopped =3D 0; >=20 > + /* Reset NIC core */ > + I40E_WRITE_REG(hw, I40E_GLGEN_RTRIG, 0x1); > + > /* Make sure all is clean before doing PF reset */ > i40e_clear_hw(hw); >=20 > -- > 2.11.0 Self NAK Regards, Bernard.