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...@intel.com> > Signed-off-by: Qiming Yang <qiming.y...@intel.com> > Signed-off-by: Xiaoyun Li <xiaoyun...@intel.com> > Signed-off-by: Jingjing Wu <jingjing...@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.