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 BD269A054F; Tue, 16 Mar 2021 20:18:40 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id A5ADD40A4B; Tue, 16 Mar 2021 20:18:40 +0100 (CET) Received: from mga12.intel.com (mga12.intel.com [192.55.52.136]) by mails.dpdk.org (Postfix) with ESMTP id 178E2406A2 for ; Tue, 16 Mar 2021 20:18:37 +0100 (CET) IronPort-SDR: qfBHuv27Fb7rlHyNY8kAysSlVd/wzuel5s42jhQwCUMwjOPRSYsmNVyC4XPPetFl3ZC3T/2ci5 Xh7vEK7+ydNQ== X-IronPort-AV: E=McAfee;i="6000,8403,9925"; a="168593589" X-IronPort-AV: E=Sophos;i="5.81,254,1610438400"; d="scan'208";a="168593589" Received: from orsmga001.jf.intel.com ([10.7.209.18]) by fmsmga106.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 16 Mar 2021 12:18:37 -0700 IronPort-SDR: PGq/9cIxpZFHdbUcSuCXGw5zQGhyzs5XvCehBkolJEYGGw5ixMLBkS1S9uYTzTrdwairn6RETP 5YQNoVJ5HOXQ== X-IronPort-AV: E=Sophos;i="5.81,254,1610438400"; d="scan'208";a="449824336" Received: from fyigit-mobl1.ger.corp.intel.com (HELO [10.252.24.201]) ([10.252.24.201]) by orsmga001-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 16 Mar 2021 12:18:34 -0700 To: Xueming Li , Andrew Rybchenko Cc: dev@dpdk.org, Viacheslav Ovsiienko , Asaf Penso , Thomas Monjalon , Ray Kinsella , Neil Horman References: <1608303356-13089-2-git-send-email-xuemingl@nvidia.com> <1615468416-10115-9-git-send-email-xuemingl@nvidia.com> From: Ferruh Yigit X-User: ferruhy Message-ID: <24792649-623e-8326-5fe2-eab2c408f0f7@intel.com> Date: Tue, 16 Mar 2021 19:18:30 +0000 MIME-Version: 1.0 In-Reply-To: <1615468416-10115-9-git-send-email-xuemingl@nvidia.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit Subject: Re: [dpdk-dev] [PATCH v9 08/10] ethdev: new API to get representor info 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" On 3/11/2021 1:13 PM, Xueming Li wrote: > The NIC can have multiple PCIe links and can be attached to multiple > hosts, for example the same single NIC can be shared for multiple server > units in the rack. On each PCIe link NIC can provide multiple PFs and > VFs/SFs based on these ones. The full representor identifier consists of > three indices - controller index, PF index, and VF or SF index (if any). > > This patch introduces a new API rte_eth_representor_info_get() to > retrieve representor corresponding info mapping: > - caller controller index and pf index. > - supported representor ID ranges. > - type, controller, pf and start vf/sf ID of each range. > The API is useful to calculate representor from devargs to representor > ID. > > New ethdev callback representor_info_get() is added to retrieve info > from PMD driver, optional for PMD that doesn't support new devargs > representor syntax. > > Signed-off-by: Xueming Li > Acked-by: Andrew Rybchenko <...> > @@ -243,6 +243,9 @@ EXPERIMENTAL { > > # added in 21.02 > rte_eth_get_monitor_addr; > + > + # added in 21.05 > + rte_eth_representor_info_get; > }; New API documented in release notes, "API Changes" section, while merging.