From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <jingjing.wu@intel.com>
Received: from mga11.intel.com (mga11.intel.com [192.55.52.93])
 by dpdk.org (Postfix) with ESMTP id E6C502BE1
 for <dev@dpdk.org>; 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" <jingjing.wu@intel.com>
To: "Dai, Wei" <wei.dai@intel.com>, "thomas@monjalon.net"
 <thomas@monjalon.net>, "Lu, Wenzhuo" <wenzhuo.lu@intel.com>, "Ananyev,
 Konstantin" <konstantin.ananyev@intel.com>, "Zhang, Helin"
 <helin.zhang@intel.com>
CC: "dev@dpdk.org" <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 <dev.dpdk.org>
List-Unsubscribe: <http://dpdk.org/ml/options/dev>,
 <mailto:dev-request@dpdk.org?subject=unsubscribe>
List-Archive: <http://dpdk.org/ml/archives/dev/>
List-Post: <mailto:dev@dpdk.org>
List-Help: <mailto:dev-request@dpdk.org?subject=help>
List-Subscribe: <http://dpdk.org/ml/listinfo/dev>,
 <mailto:dev-request@dpdk.org?subject=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 <wenzhuo.lu@intel.com>; Ananyev,
> Konstantin <konstantin.ananyev@intel.com>; Zhang, Helin
> <helin.zhang@intel.com>; Wu, Jingjing <jingjing.wu@intel.com>
> Cc: dev@dpdk.org; Dai, Wei <wei.dai@intel.com>
> 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