Re: [PATCH v6 1/4] ethdev: add API for mbufs recycle mode

2023-06-06 Thread Ferruh Yigit
On 6/6/2023 9:34 AM, Konstantin Ananyev wrote: > > >> >> [...] Probably I am missing something, but why it is not possible to do something >>> like that: rte_eth_recycle_mbufs(rx_port_id=X, rx_queue_id=Y, tx_port_id=N, tx_queue_id=M, ...); rte_eth_recycle_mbufs(rx_po

RE: [PATCH v6 1/4] ethdev: add API for mbufs recycle mode

2023-06-06 Thread Konstantin Ananyev
> > [...] > > > Probably I am missing something, but why it is not possible to do > > > something > > like that: > > > > > > rte_eth_recycle_mbufs(rx_port_id=X, rx_queue_id=Y, tx_port_id=N, > > > tx_queue_id=M, ...); > > > rte_eth_recycle_mbufs(rx_port_id=X, rx_queue_id=Y, tx_port_id=N, >

RE: [PATCH v6 1/4] ethdev: add API for mbufs recycle mode

2023-06-06 Thread Feifei Wang
[...] > > Probably I am missing something, but why it is not possible to do something > like that: > > > > rte_eth_recycle_mbufs(rx_port_id=X, rx_queue_id=Y, tx_port_id=N, > > tx_queue_id=M, ...); > > rte_eth_recycle_mbufs(rx_port_id=X, rx_queue_id=Y, tx_port_id=N, > > tx_queue_id=K, ...); > >

RE: [PATCH v6 1/4] ethdev: add API for mbufs recycle mode

2023-06-06 Thread Konstantin Ananyev
h.yi...@amd.com>; > Andrew Rybchenko <mailto:andrew.rybche...@oktetlabs.ru> > Cc: mailto:dev@dpdk.org; nd <mailto:n...@arm.com>; Honnappa Nagarahalli > <mailto:honnappa.nagaraha...@arm.com>; Ruifeng Wang > <mailto:ruifeng.w...@arm.com> > Subject: Re: [PATCH v6 1/4] ethdev: ad

RE: [PATCH v6 1/4] ethdev: add API for mbufs recycle mode

2023-06-05 Thread Feifei Wang
Thanks for the comments. From: Константин Ананьев Sent: Monday, June 5, 2023 8:54 PM To: Feifei Wang ; tho...@monjalon.net; Ferruh Yigit ; Andrew Rybchenko Cc: dev@dpdk.org; nd ; Honnappa Nagarahalli ; Ruifeng Wang Subject: Re: [PATCH v6 1/4] ethdev: add API for mbufs recycle mode Hi

Re: [PATCH v6 1/4] ethdev: add API for mbufs recycle mode

2023-06-05 Thread Константин Ананьев
  Hi Feifei, few more comments from me, see below.Add 'rte_eth_recycle_rx_queue_info_get' and 'rte_eth_recycle_mbufs'APIs to recycle used mbufs from a transmit queue of an Ethernet device,and move these mbufs into a mbuf ring for a receive queue of an Ethernetdevice. This can bypass mempool 'put/ge

RE: [PATCH v6 1/4] ethdev: add API for mbufs recycle mode

2023-05-30 Thread Feifei Wang
> -Original Message- > From: Morten Brørup > Sent: Thursday, May 25, 2023 11:09 PM > To: Feifei Wang ; tho...@monjalon.net; Ferruh > Yigit ; Andrew Rybchenko > > Cc: dev@dpdk.org; nd ; Honnappa Nagarahalli > ; Ruifeng Wang > > Subject: RE: [PATCH v6

RE: [PATCH v6 1/4] ethdev: add API for mbufs recycle mode

2023-05-25 Thread Morten Brørup
> From: Feifei Wang [mailto:feifei.wa...@arm.com] > Sent: Thursday, 25 May 2023 11.46 > > Add 'rte_eth_recycle_rx_queue_info_get' and 'rte_eth_recycle_mbufs' > APIs to recycle used mbufs from a transmit queue of an Ethernet device, > and move these mbufs into a mbuf ring for a receive queue of an

[PATCH v6 1/4] ethdev: add API for mbufs recycle mode

2023-05-25 Thread Feifei Wang
Add 'rte_eth_recycle_rx_queue_info_get' and 'rte_eth_recycle_mbufs' APIs to recycle used mbufs from a transmit queue of an Ethernet device, and move these mbufs into a mbuf ring for a receive queue of an Ethernet device. This can bypass mempool 'put/get' operations hence saving CPU cycles. For eac