[dpdk-dev] [PATCH v5 30/31] net/ice: support advance RX/TX
Ferruh Yigit
ferruh.yigit at intel.com
Tue Dec 18 00:02:40 CET 2018
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.
More information about the dev
mailing list