[v2,0/5] app/testpmd: improve attach/detach support
Message ID | 20181025151117.17132-1-thomas@monjalon.net (mailing list archive) |
---|---|
Headers |
Return-Path: <dev-bounces@dpdk.org> X-Original-To: patchwork@dpdk.org Delivered-To: patchwork@dpdk.org Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 42D305F34; Thu, 25 Oct 2018 17:11:20 +0200 (CEST) Received: from out3-smtp.messagingengine.com (out3-smtp.messagingengine.com [66.111.4.27]) by dpdk.org (Postfix) with ESMTP id 38A625B2A for <dev@dpdk.org>; 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: <xms:Fd3RW7n1aXaJx00euUt6JAXjcjGoTaTCdAWbwkSMTk3ScGK600socg> X-ME-Proxy: <xmx:Fd3RW7RII41H9x5xxlJPbnIU6I7K-HWiY7tV-JeUpObydGRfKCYzVA> <xmx:Fd3RW1ew0htPDXxuoanJm-xr-rIXzz7ccKNp6Ea7f0kNGd6ChBZCfg> <xmx:Fd3RW8GwuvCMndze_G5BBs8_PfhladOkavlBgB4i-m4REE_PuB5aoA> <xmx:Fd3RW9dYg0YNvghQYXzBPAFXSpCeYpIkxJQcUfeW7p63r53NjzYl3A> <xmx:Fd3RW5CxRpSAHOqjuWxLo4O_w1SxsHY3k64Jm1ljs1htAZZiH8ScyQ> <xmx:Ft3RWzaQxktXZzty2m_dOGcWrYqk2ivfyCYbyyLmLGXMxmo0s0vW9A> 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 <thomas@monjalon.net> 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 <dev.dpdk.org> List-Unsubscribe: <https://mails.dpdk.org/options/dev>, <mailto:dev-request@dpdk.org?subject=unsubscribe> List-Archive: <http://mails.dpdk.org/archives/dev/> List-Post: <mailto:dev@dpdk.org> List-Help: <mailto:dev-request@dpdk.org?subject=help> List-Subscribe: <https://mails.dpdk.org/listinfo/dev>, <mailto:dev-request@dpdk.org?subject=subscribe> Errors-To: dev-bounces@dpdk.org Sender: "dev" <dev-bounces@dpdk.org> |
Message
Thomas Monjalon
Oct. 25, 2018, 3:11 p.m. UTC
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(-)