From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga07.intel.com (mga07.intel.com [134.134.136.100]) by dpdk.org (Postfix) with ESMTP id CE7CD2B96 for ; Thu, 29 Jun 2017 08:59:14 +0200 (CEST) Received: from fmsmga005.fm.intel.com ([10.253.24.32]) by orsmga105.jf.intel.com with ESMTP; 28 Jun 2017 23:59:13 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.40,279,1496127600"; d="scan'208";a="120208647" Received: from kmsmsx152.gar.corp.intel.com ([172.21.73.87]) by fmsmga005.fm.intel.com with ESMTP; 28 Jun 2017 23:59:12 -0700 Received: from pgsmsx110.gar.corp.intel.com (10.221.44.111) by KMSMSX152.gar.corp.intel.com (172.21.73.87) with Microsoft SMTP Server (TLS) id 14.3.319.2; Thu, 29 Jun 2017 14:58:48 +0800 Received: from kmsmsx153.gar.corp.intel.com ([169.254.5.24]) by PGSMSX110.gar.corp.intel.com ([10.221.44.111]) with mapi id 14.03.0319.002; Thu, 29 Jun 2017 14:58:48 +0800 From: "Dai, Wei" To: "Wu, Jingjing" , "thomas@monjalon.net" , "Lu, Wenzhuo" , "Ananyev, Konstantin" , "Zhang, Helin" CC: "dev@dpdk.org" Thread-Topic: [PATCH v2 5/5] app/testpmd: add command to test NIC restoration Thread-Index: AQHS71AsvpqXD308VkyVmcOnOv0DPqI5doSAgAHu3ZA= Date: Thu, 29 Jun 2017 06:58:47 +0000 Message-ID: <49759EB36A64CF4892C1AFEC9231E8D650B4A826@KMSMSX153.gar.corp.intel.com> References: <1495873329-43303-1-git-send-email-wei.dai@intel.com> <1498572438-25125-1-git-send-email-wei.dai@intel.com> <1498572438-25125-6-git-send-email-wei.dai@intel.com> <9BB6961774997848B5B42BEC655768F810DB349D@SHSMSX103.ccr.corp.intel.com> In-Reply-To: <9BB6961774997848B5B42BEC655768F810DB349D@SHSMSX103.ccr.corp.intel.com> Accept-Language: zh-CN, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-titus-metadata-40: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiZGIyMzFhMWUtNjk3Zi00MWE2LTg1YTktNjA1ZmM0NGUwNDkxIiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX0lDIn1dfV19LCJTdWJqZWN0TGFiZWxzIjpbXSwiVE1DVmVyc2lvbiI6IjE2LjUuOS4zIiwiVHJ1c3RlZExhYmVsSGFzaCI6Ink1eDZxWUMxWlFPTHYxUVBuV0pFVWwxR3dRbTlMK2JzUWdHTDhtbzF4U2s9In0= x-ctpclassification: CTP_IC dlp-product: dlpe-windows dlp-version: 10.0.102.7 dlp-reaction: no-action x-originating-ip: [172.30.20.206] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Subject: Re: [dpdk-dev] [PATCH v2 5/5] app/testpmd: add command to test NIC restoration 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: Thu, 29 Jun 2017 06:59:15 -0000 Thanks for your feedback. V3 patch set will follow your guide. > -----Original Message----- > From: Wu, Jingjing > Sent: Wednesday, June 28, 2017 5:05 PM > To: Dai, Wei ; thomas@monjalon.net; Lu, Wenzhuo > ; Ananyev, Konstantin > ; Zhang, Helin > Cc: dev@dpdk.org > Subject: RE: [PATCH v2 5/5] app/testpmd: add command to test NIC restorat= ion >=20 >=20 >=20 > > -----Original Message----- > > From: Dai, Wei > > Sent: Tuesday, June 27, 2017 10:07 PM > > To: thomas@monjalon.net; Lu, Wenzhuo ; Ananyev, > > Konstantin ; Zhang, Helin > > ; Wu, Jingjing > > Cc: dev@dpdk.org; Dai, Wei > > Subject: [PATCH v2 5/5] app/testpmd: add command to test NIC > > restoration > > > > When a NIC is reset, a message will show it. > > And then user can run the command "reset_port port_id" > > to reset the port and to keep same port id without any without any > > configuration. > > This patch adds a testpmd command "reconfig_port port_id" > > to test whether the port can be reconfigured to have success Rx and Tx > function. > > The new command will configure the port with the simplest setting > > which includes only 1 Rx queue, only 1 Tx queue, Rx mode =3D None and T= x > > mode =3D None. > > It check if the port can receive and forward some packets. > > For example 100 packets in this new command. > > Before testing with "reset_port port_id" and then "reconfig_port > > port_id", current forwarding should be stopped first to avoid crash. > > >=20 > Testpmd has mechanism to support reconfigure, you can check the > need_reconfig Field in port struct. > No need to define a new command. >=20 >=20 > Thanks > Jingjing