net/cnxk: support base PTP timesync
[dpdk.git] / drivers / net / cnxk / cn9k_rx_vec.c
1 /* SPDX-License-Identifier: BSD-3-Clause
2  * Copyright(C) 2021 Marvell.
3  */
4
5 #include "cn9k_ethdev.h"
6 #include "cn9k_rx.h"
7
8 #define R(name, f4, f3, f2, f1, f0, flags)                                     \
9         uint16_t __rte_noinline __rte_hot cn9k_nix_recv_pkts_vec_##name(       \
10                 void *rx_queue, struct rte_mbuf **rx_pkts, uint16_t pkts)      \
11         {                                                                      \
12                 /* TSTMP is not supported by vector */                         \
13                 if ((flags) & NIX_RX_OFFLOAD_TSTAMP_F)                         \
14                         return 0;                                              \
15                 return cn9k_nix_recv_pkts_vector(rx_queue, rx_pkts, pkts,      \
16                                                  (flags));                     \
17         }
18
19 NIX_RX_FASTPATH_MODES
20 #undef R