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_##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, ws->lookup_mem); \
26 uint16_t __rte_hot cn9k_sso_hws_deq_seg_##name( \
27 void *port, struct rte_event *ev, uint64_t timeout_ticks) \
29 struct cn9k_sso_hws *ws = port; \
31 RTE_SET_USED(timeout_ticks); \
33 if (ws->swtag_req) { \
35 cnxk_sso_hws_swtag_wait(ws->tag_op); \
39 return cn9k_sso_hws_get_work( \
40 ws, ev, flags | NIX_RX_MULTI_SEG_F, ws->lookup_mem); \