Re: [PATCH v6 1/2] ethdev: add Tx queue mapping of aggregated ports

2023-02-17 Thread Ferruh Yigit
a Ovsiienko >>> ; Ori Kam ; NBU-Contact- >>> Thomas Monjalon (EXTERNAL) ; >>> ferruh.yi...@amd.com; Aman Singh ; Yuying >>> Zhang >>> Cc: dev@dpdk.org; Raslan Darawsheh >>> Subject: Re: [PATCH v6 1/2] ethdev: add Tx queue mapping of

Re: [PATCH v6 1/2] ethdev: add Tx queue mapping of aggregated ports

2023-02-17 Thread Andrew Rybchenko
: dev@dpdk.org; Raslan Darawsheh Subject: Re: [PATCH v6 1/2] ethdev: add Tx queue mapping of aggregated ports [snip] --- a/lib/ethdev/rte_ethdev.c +++ b/lib/ethdev/rte_ethdev.c @@ -6946,6 +6946,78 @@ rte_eth_buffer_split_get_supported_hdr_ptypes(uint16_t port_id, uint32_t *ptypes return

RE: [PATCH v6 1/2] ethdev: add Tx queue mapping of aggregated ports

2023-02-17 Thread Jiawei(Jonny) Wang
t; Cc: dev@dpdk.org; Raslan Darawsheh > Subject: Re: [PATCH v6 1/2] ethdev: add Tx queue mapping of aggregated ports > [snip] > > --- a/lib/ethdev/rte_ethdev.c > > +++ b/lib/ethdev/rte_ethdev.c > > @@ -6946,6 +6946,78 @@ > rte_eth_buffer_split_get_supported_hdr_ptypes

RE: [PATCH v6 1/2] ethdev: add Tx queue mapping of aggregated ports

2023-02-17 Thread Jiawei(Jonny) Wang
an Darawsheh > Subject: Re: [PATCH v6 1/2] ethdev: add Tx queue mapping of aggregated ports > > On 2/17/2023 12:56 PM, Andrew Rybchenko wrote: > >> diff --git a/lib/ethdev/ethdev_driver.h b/lib/ethdev/ethdev_driver.h > >> index 6a550cfc83..b7fdc454a8 100644 >

Re: [PATCH v6 1/2] ethdev: add Tx queue mapping of aggregated ports

2023-02-17 Thread Ferruh Yigit
On 2/17/2023 12:56 PM, Andrew Rybchenko wrote: >> diff --git a/lib/ethdev/ethdev_driver.h b/lib/ethdev/ethdev_driver.h >> index 6a550cfc83..b7fdc454a8 100644 >> --- a/lib/ethdev/ethdev_driver.h >> +++ b/lib/ethdev/ethdev_driver.h >> @@ -1171,6 +1171,40 @@ typedef int (*eth_tx_descriptor_dump_t)(con

Re: [PATCH v6 1/2] ethdev: add Tx queue mapping of aggregated ports

2023-02-17 Thread Andrew Rybchenko
On 2/17/23 13:50, Jiawei Wang wrote: When multiple ports are aggregated into a single DPDK port, (example: Linux bonding, DPDK bonding, failsafe, etc.), we want to know which port use for Tx via a queue. This patch introduces the new ethdev API rte_eth_dev_map_aggr_tx_affinity(), it's used to ma

Re: [PATCH v6 1/2] ethdev: add Tx queue mapping of aggregated ports

2023-02-17 Thread Ferruh Yigit
On 2/17/2023 10:50 AM, Jiawei Wang wrote: > +/** > + * @warning > + * @b EXPERIMENTAL: this API may change without prior notice. > + * > + * Get the number of aggregated ports of the DPDK port (specified with > port_id). > + * It is used when multiple ports are aggregated into a single one. > +

[PATCH v6 1/2] ethdev: add Tx queue mapping of aggregated ports

2023-02-17 Thread Jiawei Wang
When multiple ports are aggregated into a single DPDK port, (example: Linux bonding, DPDK bonding, failsafe, etc.), we want to know which port use for Tx via a queue. This patch introduces the new ethdev API rte_eth_dev_map_aggr_tx_affinity(), it's used to map a Tx queue with an aggregated port of