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 D0936A0567; Wed, 10 Mar 2021 08:59:20 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id BBD5422A3F3; Wed, 10 Mar 2021 08:59:20 +0100 (CET) Received: from out4-smtp.messagingengine.com (out4-smtp.messagingengine.com [66.111.4.28]) by mails.dpdk.org (Postfix) with ESMTP id 312D44068C for ; Wed, 10 Mar 2021 08:59:19 +0100 (CET) Received: from compute2.internal (compute2.nyi.internal [10.202.2.42]) by mailout.nyi.internal (Postfix) with ESMTP id 924D25C0036; Wed, 10 Mar 2021 02:59:18 -0500 (EST) Received: from mailfrontend2 ([10.202.2.163]) by compute2.internal (MEProxy); Wed, 10 Mar 2021 02:59:18 -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= YzV6wkADQ2GVzd2JbSwUzeba0Bne4xvm7a1Ds1SKKn0=; b=KCwcWeI2vBqEgqDK JDo4EM5n7BTBucztAzmqJHM/T5lmQbFTjnrolyoumJHATfVEuDjXx0xxyj8MMy+F RJYjpI0Gfkq9RI0jeDcyxwWWx63x9n9WZDuY3xsSub3y5/bFqPoE5AUEJ6dr1tDa pzhZKXcRLDnkgaD1KcQSposy5WIAFlf7cFNbSDokQk0n8Iwp40buSZaLkxGtiDuR pWiVmGk2l0nxddtcrxN62NH+xA0RPV6PBFeD6gVcufknh1Bsye5dGit5+qZLiENZ v9+3vKUhk2hZraaRAReJfQJD7mG4WLS0tVcZ/y8mhRa8Q5+JQr6pxbQRitHNieXU 8ErGEA== 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=fm2; bh=YzV6wkADQ2GVzd2JbSwUzeba0Bne4xvm7a1Ds1SKK n0=; b=v7l/ItvtQIwuQzCXYFi9tYLRyWwQLkI7Stm0CRHDNVnBPUeBpx3Km9wAM x+pI6561YNWtaVUXT1PUzTBtClvjO5QamgjAofTcaDCbQs8XpZVz9MzhdlLzE0tE G26ahXYPmdSuQWefNbva+Lmz14Qvu0em2FLLERsGe0DO74+wg+jHy6LcQMuehhP0 9OpHj2H9lmBD51Ew812/a2D4VxuiIbMftOi7Xs+6OW1q6wKZQLEAgQ1ZkK7o/pIf 3w8SlvYOzmYwahQLIhPUGckINx9/7YssPG0SghQImCOMIdljZNEvAm7fC/X/7HLA VKn7/xLhXIxJQh+k8bTMfF01yxMSA== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduledruddujedguddtfecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd enucfjughrpefhvffufffkjghfggfgtgesthfuredttddtvdenucfhrhhomhepvfhhohhm rghsucfoohhnjhgrlhhonhcuoehthhhomhgrshesmhhonhhjrghlohhnrdhnvghtqeenuc ggtffrrghtthgvrhhnpedugefgvdefudfftdefgeelgffhueekgfffhfeujedtteeutdej ueeiiedvffegheenucfkphepjeejrddufeegrddvtdefrddukeegnecuvehluhhsthgvrh fuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepthhhohhmrghssehmohhnjhgr lhhonhdrnhgvth 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 6BA441080063; Wed, 10 Mar 2021 02:59:15 -0500 (EST) From: Thomas Monjalon To: oulijun Cc: Ferruh Yigit , xiaoyun.li@intel.com, dev@dpdk.org, linuxarm@openeuler.org, Andrew Rybchenko , Aaron Conole , Honnappa Nagarahalli Date: Wed, 10 Mar 2021 08:59:13 +0100 Message-ID: <5590583.7m7mD32AY9@thomas> In-Reply-To: References: <1614929583-37727-1-git-send-email-oulijun@huawei.com> <35583d9b-0782-74a7-95df-aef1ca35f819@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Subject: Re: [dpdk-dev] [PATCH V2] app/testpmd: support Tx mbuf free on demand cmd 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" 10/03/2021 02:48, oulijun: > Can we add an API such as rte_eth_get_device(pord_id) > > for example: > struct rte_eth_dev * > rte_eth_get_device(uint16_t port_id) > { > return &rte_eth_devices[port_id]; > } An application is not supposed to access the struct rte_eth_dev. Which info do you need from this struct?