From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by dpdk.org (Postfix) with ESMTP id E6C502BE1 for ; Wed, 28 Jun 2017 11:06:28 +0200 (CEST) Received: from fmsmga005.fm.intel.com ([10.253.24.32]) by fmsmga102.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 28 Jun 2017 02:06:26 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.40,274,1496127600"; d="scan'208";a="119716850" Received: from fmsmsx104.amr.corp.intel.com ([10.18.124.202]) by fmsmga005.fm.intel.com with ESMTP; 28 Jun 2017 02:06:26 -0700 Received: from fmsmsx119.amr.corp.intel.com (10.18.124.207) by fmsmsx104.amr.corp.intel.com (10.18.124.202) with Microsoft SMTP Server (TLS) id 14.3.319.2; Wed, 28 Jun 2017 02:06:26 -0700 Received: from shsmsx152.ccr.corp.intel.com (10.239.6.52) by FMSMSX119.amr.corp.intel.com (10.18.124.207) with Microsoft SMTP Server (TLS) id 14.3.319.2; Wed, 28 Jun 2017 02:06:26 -0700 Received: from shsmsx103.ccr.corp.intel.com ([169.254.4.116]) by SHSMSX152.ccr.corp.intel.com ([169.254.6.122]) with mapi id 14.03.0319.002; Wed, 28 Jun 2017 17:05:03 +0800 From: "Wu, Jingjing" To: "Dai, Wei" , "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: AQHS71ArVL8Y7ModAkm29LXHrPK8O6I5+gtg Date: Wed, 28 Jun 2017 09:05:03 +0000 Message-ID: <9BB6961774997848B5B42BEC655768F810DB349D@SHSMSX103.ccr.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> In-Reply-To: <1498572438-25125-6-git-send-email-wei.dai@intel.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: 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 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: Wed, 28 Jun 2017 09:06:30 -0000 > -----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 >=20 > 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 fu= nction. > 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 Tx 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_reconf= ig Field in port struct. No need to define a new command. Thanks Jingjing