src/dpdk/drivers/net/fm10k/fm10k_rxtx_vec.c
uint16_t
fm10k_recv_scattered_pkts_vec(void *rx_queue, struct rte_mbuf **rx_pkts,
			      uint16_t nb_pkts)
{
	uint16_t retval = 0;

	while (nb_pkts > RTE_FM10K_MAX_RX_BURST) {
		uint16_t burst;

		burst = fm10k_recv_scattered_burst_vec(rx_queue,
						       rx_pkts + retval,
						       RTE_FM10K_MAX_RX_BURST);
		retval += burst;
		nb_pkts -= burst;
		if (burst < RTE_FM10K_MAX_RX_BURST)
			return retval;
	}

	return retval + fm10k_recv_scattered_burst_vec(rx_queue,
						       rx_pkts + retval,
						       nb_pkts);
}
/**
 * vPMD receive routine that reassembles scattered packets.
 */
vPMD receive routine that reassembles scattered packets.
vPMD receive routine that reassembles scattered packets .
uint16_t
fm10k_recv_scattered_pkts_vec(void *rx_queue, struct rte_mbuf **rx_pkts,
			      uint16_t nb_pkts)
{
	uint16_t retval = 0;
	while (nb_pkts > RTE_FM10K_MAX_RX_BURST) {
		uint16_t burst;
		burst = fm10k_recv_scattered_burst_vec(rx_queue,
						       rx_pkts + retval,
						       RTE_FM10K_MAX_RX_BURST);
		retval += burst;
		nb_pkts -= burst;
		if (burst < RTE_FM10K_MAX_RX_BURST)
			return retval;
	}
	return retval + fm10k_recv_scattered_burst_vec(rx_queue,
						       rx_pkts + retval,
						       nb_pkts);
}
uint16_t fm10k_recv_scattered_pkts_vec ( void * rx_queue , struct rte_mbuf * * rx_pkts , uint16_t nb_pkts ) { uint16_t retval = 0 ; while ( nb_pkts > RTE_FM10K_MAX_RX_BURST ) { uint16_t burst ; burst = fm10k_recv_scattered_burst_vec ( rx_queue , rx_pkts + retval , RTE_FM10K_MAX_RX_BURST ) ; retval += burst ; nb_pkts -= burst ; if ( burst < RTE_FM10K_MAX_RX_BURST ) return retval ; } return retval + fm10k_recv_scattered_burst_vec ( rx_queue , rx_pkts + retval , nb_pkts ) ; }
vPMD receive routine that reassembles scattered packets.
vPMD receive routine that reassembles scattered packets .