From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Monjalon Subject: [PATCH v2 0/5] app/testpmd: improve attach/detach support Date: Thu, 25 Oct 2018 17:11:12 +0200 Message-ID: <20181025151117.17132-1-thomas@monjalon.net> References: <20181024134111.26771-1-thomas@monjalon.net> Mime-Version: 1.0 Content-Transfer-Encoding: 8bit Cc: dev@dpdk.org, ophirmu@mellanox.com, wisamm@mellanox.com, ferruh.yigit@intel.com, arybchenko@solarflare.com To: bernard.iremonger@intel.com, jingjing.wu@intel.com, wenzhuo.lu@intel.com Return-path: Received: from out3-smtp.messagingengine.com (out3-smtp.messagingengine.com [66.111.4.27]) by dpdk.org (Postfix) with ESMTP id 38A625B2A for ; Thu, 25 Oct 2018 17:11:19 +0200 (CEST) In-Reply-To: <20181024134111.26771-1-thomas@monjalon.net> List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" While working on EAL probe/remove and ethdev iterator/close, some scenarios appeared to not be managed by testpmd, especially because it was not designed for multi-ports devices: - configure dependent port (detected via event) - configuring twice (if already probed before) - detaching twice Changes in v2 - Bernard review: - improve pretty names of printed events - add syntax of the new command in the guide Thomas Monjalon (5): app/testpmd: check not detaching device twice app/testpmd: merge ports list update functions app/testpmd: check not configuring port twice app/testpmd: move ethdev events registration app/testpmd: setup attached ports on probe event app/test-pmd/cmdline.c | 59 +++++- app/test-pmd/testpmd.c | 213 +++++++++++--------- app/test-pmd/testpmd.h | 6 +- doc/guides/testpmd_app_ug/testpmd_funcs.rst | 11 + 4 files changed, 193 insertions(+), 96 deletions(-) -- 2.19.0