1 /* SPDX-License-Identifier: BSD-3-Clause
2 * Copyright(C) 2021 Marvell.
5 #ifndef _OTX_EP_RXTX_H_
6 #define _OTX_EP_RXTX_H_
8 #include <rte_byteorder.h>
10 #define OTX_EP_RXD_ALIGN 1
11 #define OTX_EP_TXD_ALIGN 1
13 #define OTX_EP_IQ_SEND_FAILED (-1)
14 #define OTX_EP_IQ_SEND_SUCCESS (0)
16 #define OTX_EP_MAX_DELAYED_PKT_RETRIES 10000
19 #define OTX2_EP_FSZ 24
20 #define OTX_EP_MAX_INSTR 16
23 otx_ep_swap_8B_data(uint64_t *data, uint32_t blocks)
27 *data = rte_bswap64(*data);
33 static inline uint32_t
34 otx_ep_incr_index(uint32_t index, uint32_t count, uint32_t max)
36 return ((index + count) & (max - 1));
39 otx_ep_xmit_pkts(void *tx_queue, struct rte_mbuf **pkts, uint16_t nb_pkts);
41 otx2_ep_xmit_pkts(void *tx_queue, struct rte_mbuf **pkts, uint16_t nb_pkts);
43 otx_ep_recv_pkts(void *rx_queue,
44 struct rte_mbuf **rx_pkts,
46 #endif /* _OTX_EP_RXTX_H_ */