RE: [dpdk-dev] [v1] ethdev: support Tx queue used count

2024-01-19 Thread Morten Brørup
> From: Konstantin Ananyev [mailto:konstantin.anan...@huawei.com] > Sent: Friday, 19 January 2024 10.53 > > > > > > > Introduce a new API to retrieve the number of used > descriptors > > > > > > in a Tx queue. Applications can leverage this API in the fast > > > path to > > > > > > inspect the Tx

RE: [dpdk-dev] [v1] ethdev: support Tx queue used count

2024-01-19 Thread Konstantin Ananyev
> > > > > Introduce a new API to retrieve the number of used descriptors > > > > > in a Tx queue. Applications can leverage this API in the fast > > path to > > > > > inspect the Tx queue occupancy and take appropriate actions based > > on the > > > > > available free descriptors. > > > > > > > >

RE: [dpdk-dev] [v1] ethdev: support Tx queue used count

2024-01-18 Thread Morten Brørup
> From: Konstantin Ananyev [mailto:konstantin.anan...@huawei.com] > Sent: Thursday, 18 January 2024 11.17 > > Hi Jerin, > > > > > Introduce a new API to retrieve the number of used descriptors > > > > in a Tx queue. Applications can leverage this API in the fast > path to > > > > inspect the Tx q

Re: [dpdk-dev] [v1] ethdev: support Tx queue used count

2024-01-18 Thread Jerin Jacob
On Thu, Jan 18, 2024 at 3:47 PM Konstantin Ananyev wrote: > > > Hi Jerin, Hi Konstantin, > > > > > Introduce a new API to retrieve the number of used descriptors > > > > in a Tx queue. Applications can leverage this API in the fast path to > > > > inspect the Tx queue occupancy and take appropr

RE: [dpdk-dev] [v1] ethdev: support Tx queue used count

2024-01-18 Thread Konstantin Ananyev
Hi Jerin, > > > Introduce a new API to retrieve the number of used descriptors > > > in a Tx queue. Applications can leverage this API in the fast path to > > > inspect the Tx queue occupancy and take appropriate actions based on the > > > available free descriptors. > > > > > > A notable use cas

Re: [dpdk-dev] [v1] ethdev: support Tx queue used count

2024-01-18 Thread Jerin Jacob
On Fri, Jan 12, 2024 at 5:04 PM Ferruh Yigit wrote: > > On 1/11/2024 3:17 PM, jer...@marvell.com wrote: > > From: Jerin Jacob > > > > Introduce a new API to retrieve the number of used descriptors > > in a Tx queue. Applications can leverage this API in the fast path to > > inspect the Tx queue o

Re: [dpdk-dev] [v1] ethdev: support Tx queue used count

2024-01-15 Thread Jerin Jacob
On Fri, Jan 12, 2024 at 6:03 PM Konstantin Ananyev wrote: > > Hi Jerin, Hi Konstantin, > > > Introduce a new API to retrieve the number of used descriptors > > in a Tx queue. Applications can leverage this API in the fast path to > > inspect the Tx queue occupancy and take appropriate actions b

Re: [dpdk-dev] [v1] ethdev: support Tx queue used count

2024-01-12 Thread Stephen Hemminger
On Thu, 11 Jan 2024 20:47:44 +0530 wrote: > @@ -116,7 +119,9 @@ struct rte_eth_fp_ops { > eth_tx_descriptor_status_t tx_descriptor_status; > /** Copy used mbufs from Tx mbuf ring into Rx. */ > eth_recycle_tx_mbufs_reuse_t recycle_tx_mbufs_reuse; > - uintptr_t reserved2[2]; >

Re: [dpdk-dev] [v1] ethdev: support Tx queue used count

2024-01-12 Thread Ferruh Yigit
On 1/12/2024 12:29 PM, Morten Brørup wrote: >> From: Ferruh Yigit [mailto:ferruh.yi...@amd.com] >> Sent: Friday, 12 January 2024 12.34 >> >> On 1/11/2024 3:17 PM, jer...@marvell.com wrote: >>> From: Jerin Jacob >>> >>> Introduce a new API to retrieve the number of used descriptors >>> in a Tx queu

Re: [dpdk-dev] [v1] ethdev: support Tx queue used count

2024-01-12 Thread Ferruh Yigit
On 1/12/2024 12:11 PM, David Marchand wrote: > CAUTION: This message has originated from an External Source. Please use > proper judgment and caution when opening attachments, clicking links, or > responding to this email. > > > On Fri, Jan 12, 2024 at 12:34 PM Ferruh Yigit wrote: >>> diff --g

RE: [dpdk-dev] [v1] ethdev: support Tx queue used count

2024-01-12 Thread Konstantin Ananyev
Hi Jerin, > Introduce a new API to retrieve the number of used descriptors > in a Tx queue. Applications can leverage this API in the fast path to > inspect the Tx queue occupancy and take appropriate actions based on the > available free descriptors. > > A notable use case could be implementing

RE: [dpdk-dev] [v1] ethdev: support Tx queue used count

2024-01-12 Thread Morten Brørup
> From: Ferruh Yigit [mailto:ferruh.yi...@amd.com] > Sent: Friday, 12 January 2024 12.34 > > On 1/11/2024 3:17 PM, jer...@marvell.com wrote: > > From: Jerin Jacob > > > > Introduce a new API to retrieve the number of used descriptors > > in a Tx queue. Applications can leverage this API in the fa

Re: [dpdk-dev] [v1] ethdev: support Tx queue used count

2024-01-12 Thread David Marchand
On Fri, Jan 12, 2024 at 12:34 PM Ferruh Yigit wrote: > > diff --git a/lib/ethdev/rte_ethdev_core.h b/lib/ethdev/rte_ethdev_core.h > > index 4bfaf79c6c..d3f09f390d 100644 > > --- a/lib/ethdev/rte_ethdev_core.h > > +++ b/lib/ethdev/rte_ethdev_core.h > > @@ -60,6 +60,9 @@ typedef uint16_t (*eth_recyc

Re: [dpdk-dev] [v1] ethdev: support Tx queue used count

2024-01-12 Thread Ferruh Yigit
On 1/11/2024 3:17 PM, jer...@marvell.com wrote: > From: Jerin Jacob > > Introduce a new API to retrieve the number of used descriptors > in a Tx queue. Applications can leverage this API in the fast path to > inspect the Tx queue occupancy and take appropriate actions based on the > available fre

Re: [dpdk-dev] [v1] ethdev: support Tx queue used count

2024-01-12 Thread Jerin Jacob
On Fri, Jan 12, 2024 at 1:33 PM David Marchand wrote: > > Hi Jerin, > > On Thu, Jan 11, 2024 at 4:32 PM wrote: > > > > From: Jerin Jacob > > > > Introduce a new API to retrieve the number of used descriptors > > in a Tx queue. Applications can leverage this API in the fast path to > > inspect th

Re: [dpdk-dev] [v1] ethdev: support Tx queue used count

2024-01-12 Thread David Marchand
Hi Jerin, On Thu, Jan 11, 2024 at 4:32 PM wrote: > > From: Jerin Jacob > > Introduce a new API to retrieve the number of used descriptors > in a Tx queue. Applications can leverage this API in the fast path to > inspect the Tx queue occupancy and take appropriate actions based on the > available

Re: [dpdk-dev] [v1] ethdev: support Tx queue used count

2024-01-11 Thread Jerin Jacob
On Thu, Jan 11, 2024 at 10:30 PM Stephen Hemminger wrote: > > On Thu, 11 Jan 2024 20:47:44 +0530 > wrote: > > > From: Jerin Jacob > > > > Introduce a new API to retrieve the number of used descriptors > > in a Tx queue. Applications can leverage this API in the fast path to > > inspect the Tx qu

Re: [dpdk-dev] [v1] ethdev: support Tx queue used count

2024-01-11 Thread Jerin Jacob
On Thu, Jan 11, 2024 at 9:50 PM Morten Brørup wrote: > > > From: jer...@marvell.com [mailto:jer...@marvell.com] > > Sent: Thursday, 11 January 2024 16.18 > > > > From: Jerin Jacob > > > > Introduce a new API to retrieve the number of used descriptors > > in a Tx queue. Applications can leverage

Re: [dpdk-dev] [v1] ethdev: support Tx queue used count

2024-01-11 Thread Jerin Jacob
On Thu, Jan 11, 2024 at 9:47 PM Andrew Rybchenko wrote: > > On 1/11/24 18:17, jer...@marvell.com wrote: > > From: Jerin Jacob > > > > Introduce a new API to retrieve the number of used descriptors > > in a Tx queue. Applications can leverage this API in the fast path to > > inspect the Tx queue o

RE: [dpdk-dev] [v1] ethdev: support Tx queue used count

2024-01-11 Thread Morten Brørup
> From: jer...@marvell.com [mailto:jer...@marvell.com] > Sent: Thursday, 11 January 2024 16.18 > > From: Jerin Jacob > > Introduce a new API to retrieve the number of used descriptors > in a Tx queue. Applications can leverage this API in the fast path to > inspect the Tx queue occupancy and tak

Re: [dpdk-dev] [v1] ethdev: support Tx queue used count

2024-01-11 Thread Andrew Rybchenko
On 1/11/24 18:17, jer...@marvell.com wrote: From: Jerin Jacob Introduce a new API to retrieve the number of used descriptors in a Tx queue. Applications can leverage this API in the fast path to inspect the Tx queue occupancy and take appropriate actions based on the available free descriptors.

[dpdk-dev] [v1] ethdev: support Tx queue used count

2024-01-11 Thread jerinj
From: Jerin Jacob Introduce a new API to retrieve the number of used descriptors in a Tx queue. Applications can leverage this API in the fast path to inspect the Tx queue occupancy and take appropriate actions based on the available free descriptors. A notable use case could be implementing Ran