From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Monjalon Subject: [PATCH v2 0/4] ethdev iterators for multi-ports device Date: Wed, 20 Feb 2019 23:10:47 +0100 Message-ID: <20190220221051.7928-1-thomas@monjalon.net> References: <20181130002716.27325-1-thomas@monjalon.net> Mime-Version: 1.0 Content-Transfer-Encoding: 8bit Cc: dev@dpdk.org 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 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) In-Reply-To: <20181130002716.27325-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" 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