[dpdk-dev] [PATCH v9 08/10] ethdev: new API to get representor info
Ferruh Yigit
ferruh.yigit at intel.com
Tue Mar 16 20:18:30 CET 2021
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 <xuemingl at nvidia.com>
> Acked-by: Andrew Rybchenko <andrew.rybchenko at oktetlabs.ru>
<...>
> @@ -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.
More information about the dev
mailing list