From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by dpdk.space (Postfix) with ESMTP id 652F0A00B9 for ; Mon, 1 Apr 2019 04:27:08 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 86A36316B; Mon, 1 Apr 2019 04:27:07 +0200 (CEST) Received: from out1-smtp.messagingengine.com (out1-smtp.messagingengine.com [66.111.4.25]) by dpdk.org (Postfix) with ESMTP id 847C811A4 for ; Mon, 1 Apr 2019 04:27:06 +0200 (CEST) Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.nyi.internal (Postfix) with ESMTP id 1D15C21AF2; Sun, 31 Mar 2019 22:27:06 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute1.internal (MEProxy); Sun, 31 Mar 2019 22:27:06 -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=ogwigxHEzf kvhxOcvuVf68r2+L85gacdrBEirrrWyVc=; b=MXNW+NA5iPB1Yx9SNEWgyi9Mfc dBdRVgb1Z5JScqkdTROpfimukaVoRjgPhjivp8SkuU+MEH0Z69zNmJagMMQaiIhy Sq+Z0vQjkxGiE1rnd2Iz1etZr+oI2cf42a0O3/B1CRbHg5m5A6KY3C5fyLNGJ1t4 GSoxVKudd8rNNva9s= 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=ogwigxHEzfkvhxOcvuVf68r2+L85gacdrBEirrrWyVc=; b=YnvQLE0f fxcVQUmnJwPVuqpPryDpX8HKNVmlAV4iU25qPL6rx5p5zEEeZUKX1btqR7LnHq1q ljAWhrurEA5YdZ046Sfjfij8PTbtQf1qcfbfDVdYgZNpL/1rhcXVz0EQCZvgzBpf VMUaOhNPzxeU4LiyIDfDy8/dp3eTpV05y52WRiPnZifd5vEHSIa7XfjNp6IO5PuJ ZNvygqyUCt3o8BHUNyfwHVD0lONOtRuLcQtN29D3IxUPkOhuMW5Kav1d0MKZK7Yp JdBBmxP8XQYywK/JEST0iGsMsGyfh3+jrKleK8dAe9aKhPN/ud5FPoSK6tFwtgfV QT4IVF36V1l4ng== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedutddrleefgdehlecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecunecujfgurhephffvufffkffojghfggfgsedtkeertd ertddtnecuhfhrohhmpefvhhhomhgrshcuofhonhhjrghlohhnuceothhhohhmrghssehm ohhnjhgrlhhonhdrnhgvtheqnecukfhppeejjedrudefgedrvddtfedrudekgeenucfrrg hrrghmpehmrghilhhfrhhomhepthhhohhmrghssehmohhnjhgrlhhonhdrnhgvthenucev lhhushhtvghrufhiiigvpedt 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 050D11031A; Sun, 31 Mar 2019 22:27:04 -0400 (EDT) From: Thomas Monjalon To: gaetan.rivet@6wind.com Cc: dev@dpdk.org Date: Mon, 1 Apr 2019 04:26:56 +0200 Message-Id: <20190401022700.1570-1-thomas@monjalon.net> X-Mailer: git-send-email 2.21.0 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 v3 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: , Errors-To: dev-bounces@dpdk.org Sender: "dev" Content-Type: text/plain; charset="UTF-8" Message-ID: <20190401022656.6xQ5AFlyDaveRKTrWbaYPLcdW8d6mIhqyvmN875Lwx8@z> 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. v3: changes only in the (main) patch 2 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 | 25 ++++++++-- lib/librte_ethdev/rte_ethdev.h | 63 ++++++++++++++++++++++++ lib/librte_ethdev/rte_ethdev_version.map | 2 + 6 files changed, 101 insertions(+), 33 deletions(-) -- 2.21.0