From mboxrd@z Thu Jan 1 00:00:00 1970 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) Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.nyi.internal (Postfix) with ESMTP id B025D22127; Thu, 25 Oct 2018 11:11:18 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute1.internal (MEProxy); Thu, 25 Oct 2018 11:11:18 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=monjalon.net; h= from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; s=mesmtp; bh=76m3JiX/20 ekB1CQ/hZRaFTchyxr7SZ0CSTVrB+sA90=; b=Tb6/X1llY+pEM1YoAm1VA5MjKq Ee5YAc3LUXNTWSQi7bp3yNqEsTRXKuY0yl0tRSN4mrKHaH/12OYQJoDFnSRMMUQY sMzcQs4+wpKGzthM3ZciuLpaedvU+WJtsrddKgyGwUDPUi8vO505eQxI6bntYIJR gyTPZprAVixCRfuhE= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:date:from :in-reply-to:message-id:mime-version:references:subject:to :x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm1; bh=76m3JiX/20ekB1CQ/hZRaFTchyxr7SZ0CSTVrB+sA90=; b=eaDPGget lG47Fvm61f3EabNCSLkoTFr/9XftJMRcSQH5Hk0AMhWhLJeCikB0kMwDKoHLrp/N +uFuSpBULV6+P4ETgGtjTtkRBTCb4Z1rvNhfa8sBTLGjIy1zwTuzy4nLG7Q/SvKG P1GbX0RBCbYDb1k88KchLcx3QZ6NTNOuDf7SdR4wS+aMNJOvLFGJZYLQunGTdnMR SEPZOT1jDyp8G/fEETnJ7kQch+jrAhW1sY57IjbpWl5sLhL2dCLbhTIWF6vtVSee PYi4L7fN5pJzwVGaD7u/r1m96zQqaraRylPhSc1zd6wM8tLv96evbhlKqv5CTCOO aqJsO+tg96YHpg== X-ME-Sender: X-ME-Proxy: Received: from xps.monjalon.net (184.203.134.77.rev.sfr.net [77.134.203.184]) by mail.messagingengine.com (Postfix) with ESMTPA id C830E102F2; Thu, 25 Oct 2018 11:11:16 -0400 (EDT) From: Thomas Monjalon To: bernard.iremonger@intel.com, jingjing.wu@intel.com, wenzhuo.lu@intel.com Cc: dev@dpdk.org, ophirmu@mellanox.com, wisamm@mellanox.com, ferruh.yigit@intel.com, arybchenko@solarflare.com Date: Thu, 25 Oct 2018 17:11:12 +0200 Message-Id: <20181025151117.17132-1-thomas@monjalon.net> X-Mailer: git-send-email 2.19.0 In-Reply-To: <20181024134111.26771-1-thomas@monjalon.net> References: <20181024134111.26771-1-thomas@monjalon.net> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [dpdk-dev] [PATCH v2 0/5] app/testpmd: improve attach/detach support 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, 25 Oct 2018 15:11:19 -0000 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