681c8cfa05
Add multi-segment Rx vector routine, form the primary mbufs using vector path switch to scalar path when extracting segments. Signed-off-by: Pavan Nikhilesh <pbhagavatula@marvell.com> Acked-by: Nithin Dabilpuram <ndabilpuram@marvell.com>
19 lines
592 B
C
19 lines
592 B
C
/* SPDX-License-Identifier: BSD-3-Clause
|
|
* Copyright(C) 2021 Marvell.
|
|
*/
|
|
|
|
#include "cn9k_ethdev.h"
|
|
#include "cn9k_rx.h"
|
|
|
|
#define R(name, f5, f4, f3, f2, f1, f0, flags) \
|
|
uint16_t __rte_noinline __rte_hot cn9k_nix_recv_pkts_vec_mseg_##name( \
|
|
void *rx_queue, struct rte_mbuf **rx_pkts, uint16_t pkts) \
|
|
{ \
|
|
return cn9k_nix_recv_pkts_vector(rx_queue, rx_pkts, pkts, \
|
|
(flags) | \
|
|
NIX_RX_MULTI_SEG_F); \
|
|
}
|
|
|
|
NIX_RX_FASTPATH_MODES
|
|
#undef R
|