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 09B314CE4 for ; Wed, 24 Oct 2018 15:41:18 +0200 (CEST) Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.nyi.internal (Postfix) with ESMTP id 70AD521B2A; Wed, 24 Oct 2018 09:41:18 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute1.internal (MEProxy); Wed, 24 Oct 2018 09:41:18 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=monjalon.net; h= from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; s=mesmtp; bh=4bJCG4fR4GKDK6ardJmzL6S 0QshtT/xjfTJB6/c2Frg=; b=lg0U8Jt5EvvI8RgX4x6XUWrD0etuaIFNau4AD/F fpEsIILwFgsajKW/FRP+I4zQHZ4pjhOfPi90oAxq4ezJnqT3JpKufmmMks/ltWGT mrejgU0m4ivZ64sExZHvLForuzqmLMGdj9oJeYWvT5W1s/dB72Rkai/mnUFk3Fxs 8PQs= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:date:from :message-id:mime-version:subject:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm1; bh=4bJCG4fR4GKDK6ard JmzL6S0QshtT/xjfTJB6/c2Frg=; b=xmmJF21jcJacZ2EcIks7N119RtQ0kLOjS qwoEpOWhBhZ/X3Wd1QuOXlswJrxQmmjXLplskNPSzC2AIGYO0LWrZA1EXQrwzLDB QpQHfuUJrAE3WN7qMp7iEkiYQaeko5z9AaxWjyqlaP7v5cI7L+smxLuXeMMAYK3H 3845t/QvVv7CRzAbMRVFa9DEBDHVKVTLQptI7n44vBKYGcnD4kkEIxNWfP1xfEHS D6kpyegjlHl9MxiQd6ygTO6gYv0b789uZn6z/+Q0RPk0t72q3ZN9HrP44ERxT1FN IurVOXqVcs5SMgrkrXyXsF45TytxG0Ot5aYLEKx8b1730YHhSnI4A== 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 BA484E4119; Wed, 24 Oct 2018 09:41: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: Wed, 24 Oct 2018 15:41:06 +0200 Message-Id: <20181024134111.26771-1-thomas@monjalon.net> X-Mailer: git-send-email 2.19.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [dpdk-dev] [PATCH 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: Wed, 24 Oct 2018 13:41: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 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 | 9 + 4 files changed, 191 insertions(+), 96 deletions(-) -- 2.19.0