1 /* SPDX-License-Identifier: BSD-3-Clause
2 * Copyright(C) 2021 Marvell.
5 #include "cn9k_worker.h"
6 #include "cnxk_eventdev.h"
7 #include "cnxk_worker.h"
9 #define R(name, f6, f5, f4, f3, f2, f1, f0, flags) \
10 uint16_t __rte_hot cn9k_sso_hws_deq_ca_##name( \
11 void *port, struct rte_event *ev, uint64_t timeout_ticks) \
13 struct cn9k_sso_hws *ws = port; \
15 RTE_SET_USED(timeout_ticks); \
17 if (ws->swtag_req) { \
19 cnxk_sso_hws_swtag_wait(ws->tag_op); \
23 return cn9k_sso_hws_get_work(ws, ev, flags | CPT_RX_WQE_F, \
27 uint16_t __rte_hot cn9k_sso_hws_deq_ca_burst_##name( \
28 void *port, struct rte_event ev[], uint16_t nb_events, \
29 uint64_t timeout_ticks) \
31 RTE_SET_USED(nb_events); \
33 return cn9k_sso_hws_deq_ca_##name(port, ev, timeout_ticks); \
36 uint16_t __rte_hot cn9k_sso_hws_deq_ca_seg_##name( \
37 void *port, struct rte_event *ev, uint64_t timeout_ticks) \
39 struct cn9k_sso_hws *ws = port; \
41 RTE_SET_USED(timeout_ticks); \
43 if (ws->swtag_req) { \
45 cnxk_sso_hws_swtag_wait(ws->tag_op); \
49 return cn9k_sso_hws_get_work( \
50 ws, ev, flags | NIX_RX_MULTI_SEG_F | CPT_RX_WQE_F, \
54 uint16_t __rte_hot cn9k_sso_hws_deq_ca_seg_burst_##name( \
55 void *port, struct rte_event ev[], uint16_t nb_events, \
56 uint64_t timeout_ticks) \
58 RTE_SET_USED(nb_events); \
60 return cn9k_sso_hws_deq_ca_seg_##name(port, ev, \