[dpdk-dev] [PATCH v5 30/31] net/ice: support advance RX/TX

Lu, Wenzhuo wenzhuo.lu at intel.com
Tue Dec 18 04:11:20 CET 2018


Hi Ferruh,


> -----Original Message-----
> From: Yigit, Ferruh
> Sent: Tuesday, December 18, 2018 7:03 AM
> To: Lu, Wenzhuo <wenzhuo.lu at intel.com>; dev at dpdk.org
> Cc: Yang, Qiming <qiming.yang at intel.com>; Li, Xiaoyun
> <xiaoyun.li at intel.com>; Wu, Jingjing <jingjing.wu at intel.com>
> Subject: Re: [dpdk-dev] [PATCH v5 30/31] net/ice: support advance RX/TX
> 
> On 12/17/2018 7:37 AM, Wenzhuo Lu wrote:
> > Add RX functions, scatter and bulk.
> > Add TX function, simple.
> >
> > Signed-off-by: Wenzhuo Lu <wenzhuo.lu at intel.com>
> > Signed-off-by: Qiming Yang <qiming.yang at intel.com>
> > Signed-off-by: Xiaoyun Li <xiaoyun.li at intel.com>
> > Signed-off-by: Jingjing Wu <jingjing.wu at intel.com>
> 
> <...>
> 
> > +ice_tx_free_bufs(struct ice_tx_queue *txq) {
> > +	struct ice_tx_entry *txep;
> > +	uint16_t i;
> > +
> > +	if ((txq->tx_ring[txq->tx_next_dd].cmd_type_offset_bsz &
> > +	     rte_cpu_to_le_64(ICE_TXD_QW1_DTYPE_M)) !=
> > +	    rte_cpu_to_le_64(ICE_TX_DESC_DTYPE_DESC_DONE))
> > +		return 0;
> > +
> > +	txep = &txq->sw_ring[txq->tx_next_dd - (txq->tx_rs_thresh - 1)];
> > +
> > +	for (i = 0; i < txq->tx_rs_thresh; i++)
> > +		rte_prefetch0((txep + i)->mbuf);
> > +
> > +	if (txq->offloads & DEV_TX_OFFLOAD_MBUF_FAST_FREE) {
> 
> You can announce "Fast mbuf free" feature in .ini file if this is supported.
Thanks for the reminder. Will add it.



More information about the dev mailing list