[dpdk-dev] [PATCH v5 30/31] net/ice: support advance RX/TX
Ferruh Yigit
ferruh.yigit at intel.com
Tue Dec 18 00:46:30 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>
<....>
> + rxdp = &rxq->rx_ring[alloc_idx];
> + for (i = 0; i < rxq->rx_free_thresh; i++) {
> + if (likely(i < (rxq->rx_free_thresh - 1)))
> + /* Prefetch next mbuf */
> + rte_prefetch0(rxep[i + 1].mbuf);
> +
> + mb = rxep[i].mbuf;
> + rte_mbuf_refcnt_set(mb, 1);
> + mb->next = NULL;
> + mb->data_off = RTE_PKTMBUF_HEADROOM;
> + mb->nb_segs = 1;
> + mb->port = rxq->port_id;
> + dma_addr = rte_cpu_to_le_64(rte_mbuf_data_iova_default(mb));
> + rxdp[i].read.hdr_addr = 0;
> + rxdp[i].read.pkt_addr = dma_addr;
> + }
> +
> + /* Update rx tail regsiter */
Can you please double check checkpatch warnings, some of them can be ignored but
some are easy to fix issues:
WARNING:TYPO_SPELLING: 'regsiter' may be misspelled - perhaps 'register'?
#201: FILE: drivers/net/ice/ice_lan_rxtx.c:1112:
+ /* Update rx tail regsiter */
More information about the dev
mailing list