RE: [PATCH v4 1/3] ethdev: add API for buffer recycle mode

2023-03-28 Thread Feifei Wang
ng Wang > > Subject: RE: [PATCH v4 1/3] ethdev: add API for buffer recycle mode > > > From: Feifei Wang [mailto:feifei.wa...@arm.com] > > Sent: Thursday, 23 March 2023 11.43 > > > > [...] > > > +static inline uint16_t rte_eth_rx_descriptors_refil

RE: [PATCH v4 1/3] ethdev: add API for buffer recycle mode

2023-03-23 Thread Morten Brørup
> From: Feifei Wang [mailto:feifei.wa...@arm.com] > Sent: Thursday, 23 March 2023 11.43 > [...] > +static inline uint16_t rte_eth_rx_descriptors_refill(uint16_t port_id, > + uint16_t queue_id, uint16_t nb) > +{ > + struct rte_eth_fp_ops *p; > + void *qd; > + > +#ifdef RTE_ETH

[PATCH v4 1/3] ethdev: add API for buffer recycle mode

2023-03-23 Thread Feifei Wang
There are 4 upper APIs for buffer recycle mode: 1. 'rte_eth_rx_queue_buf_recycle_info_get' This is to retrieve buffer ring information about given ports's Rx queue in buffer recycle mode. And due to this, buffer recycle can be no longer limited to the same driver in Rx and Tx. 2. 'rte_eth_dev_buf_