From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from wout2-smtp.messagingengine.com (wout2-smtp.messagingengine.com [64.147.123.25]) by dpdk.org (Postfix) with ESMTP id 34B6D1E34 for ; Wed, 20 Feb 2019 23:11:11 +0100 (CET) Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.west.internal (Postfix) with ESMTP id B07BC31A4; Wed, 20 Feb 2019 17:11:09 -0500 (EST) Received: from mailfrontend2 ([10.202.2.163]) by compute1.internal (MEProxy); Wed, 20 Feb 2019 17:11:09 -0500 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=4bQIzAQnGu 6e8WyC1c5p6dzIyp772GlSVhG5Lr5hQYk=; b=alaSMFxJA5EQWsgZsq2RwO35pc KQLAFqLxKAMC+LPI4XrkuKO7DSjaqPJSotmPxrthYrR7jepmpEONG+CV1FZpFwxi s5uiF7GDCCcBZnvwyBqnCuvuMZpCSx83Ku1MLdg5gyRmRShSYuuhxfNNoSHoxZnP dP+e+pOqWdDf61vz8= 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= fm2; bh=4bQIzAQnGu6e8WyC1c5p6dzIyp772GlSVhG5Lr5hQYk=; b=MhEekZtI NgFUnN/jh3oKVXGwH7S43ALuB1Dkco4kKk6GKRV4J28+sm11JpbGbeYRVoW4INpb sUBYa38CE31qRR1+EdhYqt6jNjGfIDRuSAaErPKIDi/uPibIOxciA+9sSCTeVXSQ 5GgSGqpqzZbCBq8tKWLJbWYmDnDDh0NqyMcn9U3Kc3XWXaemB3vIUY1VXSeqG5IK WGyznMn8RHtSXklFmPsljGwyTggTJri0KL0pN5xu9HFdAQ/0N2GcZBNfBxkfpEWL 0EQVFtzqfBRxtB4PMrL1w8Om2Krv+J1fTi7gT9zTTK2RQ4QHD04r/FY+WfZDJl3y esOzozq0jsBnDA== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedutddrtdeigdduheekucdltddurdegtdelrddttd dmucetufdoteggodetrfdotffvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfquhht necuuegrihhlohhuthemuceftddtnecumhhishhsihhnghcuvffquchfihgvlhguucdlfe dtmdenucfjughrpefhvffufffkofgjfhgggfestdekredtredttdenucfhrhhomhepvfhh ohhmrghsucfoohhnjhgrlhhonhcuoehthhhomhgrshesmhhonhhjrghlohhnrdhnvghtqe enucfkphepjeejrddufeegrddvtdefrddukeegnecurfgrrhgrmhepmhgrihhlfhhrohhm pehthhhomhgrshesmhhonhhjrghlohhnrdhnvghtnecuvehluhhsthgvrhfuihiivgeptd 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 67992100E5 for ; Wed, 20 Feb 2019 17:11:08 -0500 (EST) From: Thomas Monjalon To: Cc: dev@dpdk.org Date: Wed, 20 Feb 2019 23:10:47 +0100 Message-Id: <20190220221051.7928-1-thomas@monjalon.net> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20181130002716.27325-1-thomas@monjalon.net> References: <20181130002716.27325-1-thomas@monjalon.net> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [dpdk-dev] [PATCH v2 0/4] ethdev iterators for multi-ports device 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, 20 Feb 2019 22:11:11 -0000 Add port iterators in order to allow listing easily the ports of the same device. The iterators can be tested by using mlx5 or testpmd. Thomas Monjalon (4): ethdev: simplify port state comparisons ethdev: add siblings iterators net/mlx5: use port sibling iterators app/testpmd: use port sibling iterator in device cleanup app/test-pmd/testpmd.c | 4 +-- drivers/net/mlx5/mlx5.c | 34 +++++++----------- drivers/net/mlx5/mlx5_ethdev.c | 6 +--- lib/librte_ethdev/rte_ethdev.c | 26 +++++++++++--- lib/librte_ethdev/rte_ethdev.h | 46 ++++++++++++++++++++++++ lib/librte_ethdev/rte_ethdev_version.map | 2 ++ 6 files changed, 85 insertions(+), 33 deletions(-) -- 2.20.1