event/cnxk: support Rx adapter fast path
[dpdk.git] / drivers / event / cnxk / cn10k_worker_deq_burst.c
1 /* SPDX-License-Identifier: BSD-3-Clause
2  * Copyright(C) 2021 Marvell.
3  */
4
5 #include "cn10k_worker.h"
6 #include "cnxk_eventdev.h"
7 #include "cnxk_worker.h"
8
9 #define R(name, f5, f4, f3, f2, f1, f0, flags)                                 \
10         uint16_t __rte_hot cn10k_sso_hws_deq_burst_##name(                     \
11                 void *port, struct rte_event ev[], uint16_t nb_events,         \
12                 uint64_t timeout_ticks)                                        \
13         {                                                                      \
14                 RTE_SET_USED(nb_events);                                       \
15                                                                                \
16                 return cn10k_sso_hws_deq_##name(port, ev, timeout_ticks);      \
17         }                                                                      \
18                                                                                \
19         uint16_t __rte_hot cn10k_sso_hws_deq_seg_burst_##name(                 \
20                 void *port, struct rte_event ev[], uint16_t nb_events,         \
21                 uint64_t timeout_ticks)                                        \
22         {                                                                      \
23                 RTE_SET_USED(nb_events);                                       \
24                                                                                \
25                 return cn10k_sso_hws_deq_seg_##name(port, ev, timeout_ticks);  \
26         }
27
28 NIX_RX_FASTPATH_MODES
29 #undef R