src/dpdk/drivers/net/i40e/i40e_rxtx_vec_avx512.c
uint16_t
i40e_recv_scattered_pkts_vec_avx512(void *rx_queue,
				    struct rte_mbuf **rx_pkts,
				    uint16_t nb_pkts)
{
	uint16_t retval = 0;

	while (nb_pkts > RTE_I40E_VPMD_RX_BURST) {
		uint16_t burst = i40e_recv_scattered_burst_vec_avx512(rx_queue,
				rx_pkts + retval, RTE_I40E_VPMD_RX_BURST);
		retval += burst;
		nb_pkts -= burst;
		if (burst < RTE_I40E_VPMD_RX_BURST)
			return retval;
	}
	return retval + i40e_recv_scattered_burst_vec_avx512(rx_queue,
				rx_pkts + retval, nb_pkts);
}
/**
 * vPMD receive routine that reassembles scattered packets.
 * Main receive routine that can handle arbitrary burst sizes
 * Notice:
 * - nb_pkts < RTE_I40E_DESCS_PER_LOOP, just return no packet
 */
vPMD receive routine that reassembles scattered packets.
Main receive routine that can handle arbitrary burst sizes
Notice:
- nb_pkts < RTE_I40E_DESCS_PER_LOOP, just return no packet
vPMD receive routine that reassembles scattered packets . Main receive routine that can handle arbitrary burst sizes Notice : - nb_pkts < RTE_I40E_DESCS_PER_LOOP just return no packet
uint16_t
i40e_recv_scattered_pkts_vec_avx512(void *rx_queue,
				    struct rte_mbuf **rx_pkts,
				    uint16_t nb_pkts)
{
	uint16_t retval = 0;
	while (nb_pkts > RTE_I40E_VPMD_RX_BURST) {
		uint16_t burst = i40e_recv_scattered_burst_vec_avx512(rx_queue,
				rx_pkts + retval, RTE_I40E_VPMD_RX_BURST);
		retval += burst;
		nb_pkts -= burst;
		if (burst < RTE_I40E_VPMD_RX_BURST)
			return retval;
	}
	return retval + i40e_recv_scattered_burst_vec_avx512(rx_queue,
				rx_pkts + retval, nb_pkts);
}
uint16_t i40e_recv_scattered_pkts_vec_avx512 ( void * rx_queue , struct rte_mbuf * * rx_pkts , uint16_t nb_pkts ) { uint16_t retval = 0 ; while ( nb_pkts > RTE_I40E_VPMD_RX_BURST ) { uint16_t burst = i40e_recv_scattered_burst_vec_avx512 ( rx_queue , rx_pkts + retval , RTE_I40E_VPMD_RX_BURST ) ; retval += burst ; nb_pkts -= burst ; if ( burst < RTE_I40E_VPMD_RX_BURST ) return retval ; } return retval + i40e_recv_scattered_burst_vec_avx512 ( rx_queue , rx_pkts + retval , nb_pkts ) ; }
vPMD receive routine that reassembles scattered packets.
vPMD receive routine that reassembles scattered packets .