[dpdk-dev] [PATCH 2/4 v3] add vector PMD TX for FVL

Liang, Cunming cunming.liang at intel.com
Fri Oct 30 14:29:26 CET 2015


Hi,

> -----Original Message-----
> From: Tao, Zhe
> Sent: Friday, October 30, 2015 9:02 PM
> To: dev at dpdk.org
> Cc: Tao, Zhe; Liang, Cunming
> Subject: [dpdk-dev][PATCH 2/4 v3] add vector PMD TX for FVL
> 
> The way to increase the performance of the vPMD TX is to use some fast mbuf
> release method compares to the scalar TX.
> 
> Signed-off-by: Zhe Tao <zhe.tao at intel.com>
> ---
>  drivers/net/i40e/i40e_rxtx.c     |   8 ++
>  drivers/net/i40e/i40e_rxtx.h     |   3 +
>  drivers/net/i40e/i40e_rxtx_vec.c | 162
> +++++++++++++++++++++++++++++++++++++++
>  3 files changed, 173 insertions(+)
> +
[...]
> +static inline int __attribute__((always_inline))
> +i40e_tx_free_bufs(struct i40e_tx_queue *txq)
> +{
> +	struct i40e_tx_entry *txep;
> +	uint32_t n;
> +	uint32_t i;
> +	int nb_free = 0;
> +	struct rte_mbuf *m, *free[RTE_I40E_TX_MAX_FREE_BUF_SZ];
Tiny format issue, require a blank line here.
> +	/* check DD bits on threshold descriptor */
> +	if ((txq->tx_ring[txq->tx_next_dd].cmd_type_offset_bsz &
> +			rte_cpu_to_le_64(I40E_TXD_QW1_DTYPE_MASK)) !=
> +			rte_cpu_to_le_64(I40E_TX_DESC_DTYPE_DESC_DONE))
> +		return 0;
> +
> +	n = txq->tx_rs_thresh;
> +
[...]


More information about the dev mailing list