From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 3CF1AA0A05; Wed, 20 Jan 2021 01:56:44 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id B1739140E95; Wed, 20 Jan 2021 01:56:43 +0100 (CET) Received: from out3-smtp.messagingengine.com (out3-smtp.messagingengine.com [66.111.4.27]) by mails.dpdk.org (Postfix) with ESMTP id A4C19140E8E for ; Wed, 20 Jan 2021 01:56:41 +0100 (CET) Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.nyi.internal (Postfix) with ESMTP id 2D47D5C010D; Tue, 19 Jan 2021 19:56:41 -0500 (EST) Received: from mailfrontend2 ([10.202.2.163]) by compute4.internal (MEProxy); Tue, 19 Jan 2021 19:56:41 -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:content-type; s=fm3; bh= gl25LeUdBet4mjZhJu2CqC1r9lyL7nI71I3YtLqkaGk=; b=x0cFRSKygnX/U1ZU 3d6Mz9myPEHFdDID2bOiAlpU6eFlgUWQsNoYU1S9DHogvsTUX7AKq8K7lwbfi5fe 3CEjTXE9hv48ysWax8Cd7uy0r3mTNhmjRXLZghAGnvL84kkxlnAojjohcXzhjh52 k1d9eHGiAZ13Uk4tYEXlEH9nN1KzDJObW3ctHt2RgdhUN4CRmbKzXIox3MSfwUDq eZh6SWdS7qw7CurivNfCtndQsDT2/FhsVqnWciEJYV27i0i9fVKU02NqC51dg429 TkC59g/lrln6gXP94z2FSSbnjx0rx/jILiCnq8WcrXP6SZXEHV3ivPPWUYGvAMQj 8q2WRQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :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=gl25LeUdBet4mjZhJu2CqC1r9lyL7nI71I3YtLqka Gk=; b=l+UON5aDaEk3tZqGugJjl5iZiToZV9fh4YTD9WqjkIQlGa9IMBbUNl8er rs3ZoVd3KN8JY5DIouSgRKHEoxiXnQjulOTqBrh37M5KH1t0wKPX7nbtjnBKoGNn H7B4wi25xXN/YHmiaViVDcsyedZWqheADA6QF1Fnhlr7asWDqKY0aLTR/crTlCSg ruYFNQpBUZ2XACGv6Bkdg/kfXVeLaLy01qI+cIcMUYp/InyFcWa7C40Fm3ZwKCZo yZAuAZYMEtpEISEPeW7DgINVjnMKZeEkqHXFQ749KUUK6GCJokrNmyULUHTsf2fo N/GCp47J17fcNGOWo3vA4K/Tw7BIA== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduledruddugddvkecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpefhvffufffkjghfggfgtgesthfuredttddtvdenucfhrhhomhepvfhhohhmrghs ucfoohhnjhgrlhhonhcuoehthhhomhgrshesmhhonhhjrghlohhnrdhnvghtqeenucggtf frrghtthgvrhhnpedugefgvdefudfftdefgeelgffhueekgfffhfeujedtteeutdejueei iedvffegheenucfkphepjeejrddufeegrddvtdefrddukeegnecuvehluhhsthgvrhfuih iivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepthhhohhmrghssehmohhnjhgrlhho nhdrnhgvth X-ME-Proxy: Received: from xps.localnet (184.203.134.77.rev.sfr.net [77.134.203.184]) by mail.messagingengine.com (Postfix) with ESMTPA id A25191080067; Tue, 19 Jan 2021 19:56:39 -0500 (EST) From: Thomas Monjalon To: Maxime Coquelin Cc: dev@dpdk.org, chenbo.xia@intel.com, olivier.matz@6wind.com, amorenoz@redhat.com, david.marchand@redhat.com Date: Wed, 20 Jan 2021 01:56:37 +0100 Message-ID: <6000259.GDM0XGPNsY@thomas> In-Reply-To: <20210119212507.1043636-2-maxime.coquelin@redhat.com> References: <20210119212507.1043636-1-maxime.coquelin@redhat.com> <20210119212507.1043636-2-maxime.coquelin@redhat.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Subject: Re: [dpdk-dev] [PATCH v2 01/44] bus/vdev: add helper to get vdev from eth dev X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 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" 19/01/2021 22:24, Maxime Coquelin: > This patch adds an helper macro to get the rte_vdev_device > pointer from a rte_eth_dev pointer. > > This is similar to RTE_ETH_DEV_TO_PCI(). [...] > --- a/drivers/bus/vdev/rte_bus_vdev.h > +++ b/drivers/bus/vdev/rte_bus_vdev.h > @@ -34,6 +34,8 @@ struct rte_vdev_device { > +#define RTE_ETH_DEV_TO_VDEV(eth_dev) RTE_DEV_TO_VDEV((eth_dev)->device) Why these macros (vdev and PCI) are not in ethdev?