@@ -6,52 +6,7 @@
#include <cnxk_ethdev.h>
#include <cnxk_security.h>
-
-struct cn10k_eth_txq {
- uint64_t send_hdr_w0;
- int64_t fc_cache_pkts;
- uint64_t *fc_mem;
- uintptr_t lmt_base;
- rte_iova_t io_addr;
- uint16_t sqes_per_sqb_log2;
- int16_t nb_sqb_bufs_adj;
- rte_iova_t cpt_io_addr;
- uint64_t sa_base;
- uint64_t *cpt_fc;
- uint16_t cpt_desc;
- int32_t *cpt_fc_sw;
- uint64_t lso_tun_fmt;
- uint64_t ts_mem;
- uint64_t mark_flag : 8;
- uint64_t mark_fmt : 48;
- struct cnxk_eth_txq_comp tx_compl;
-} __plt_cache_aligned;
-
-struct cn10k_eth_rxq {
- uint64_t mbuf_initializer;
- uintptr_t desc;
- void *lookup_mem;
- uintptr_t cq_door;
- uint64_t wdata;
- int64_t *cq_status;
- uint32_t head;
- uint32_t qmask;
- uint32_t available;
- uint16_t data_off;
- uint64_t sa_base;
- uint64_t lmt_base;
- uint64_t meta_aura;
- uint16_t rq;
- struct cnxk_timesync_info *tstamp;
-} __plt_cache_aligned;
-
-/* Private data in sw rsvd area of struct roc_ot_ipsec_inb_sa */
-struct cn10k_inb_priv_data {
- void *userdata;
- int reass_dynfield_off;
- int reass_dynflag_bit;
- struct cnxk_eth_sec_sess *eth_sec;
-};
+#include <cn10k_rxtx.h>
/* Private data in sw rsvd area of struct roc_ot_ipsec_outb_sa */
struct cn10k_outb_priv_data {
@@ -64,26 +19,6 @@ struct cn10k_outb_priv_data {
uint32_t sa_idx;
};
-struct cn10k_sec_sess_priv {
- union {
- struct {
- uint32_t sa_idx;
- uint8_t inb_sa : 1;
- uint8_t outer_ip_ver : 1;
- uint8_t mode : 1;
- uint8_t roundup_byte : 5;
- uint8_t roundup_len;
- uint16_t partial_len : 10;
- uint16_t chksum : 2;
- uint16_t dec_ttl : 1;
- uint16_t nixtx_off : 1;
- uint16_t rsvd : 2;
- };
-
- uint64_t u64;
- };
-} __rte_packed;
-
/* Rx and Tx routines */
void cn10k_eth_set_rx_function(struct rte_eth_dev *eth_dev);
void cn10k_eth_set_tx_function(struct rte_eth_dev *eth_dev);
@@ -95,8 +30,4 @@ void cn10k_eth_sec_ops_override(void);
void cn10k_eth_sec_sso_work_cb(uint64_t *gw, void *args,
uint32_t soft_exp_event);
-#define LMT_OFF(lmt_addr, lmt_num, offset) \
- (void *)((uintptr_t)(lmt_addr) + \
- ((uint64_t)(lmt_num) << ROC_LMT_LINE_SIZE_LOG2) + (offset))
-
#endif /* __CN10K_ETHDEV_H__ */
@@ -4,10 +4,11 @@
#ifndef __CN10K_RX_H__
#define __CN10K_RX_H__
-#include <rte_ether.h>
+#include <rte_ethdev.h>
#include <rte_vect.h>
+#include "cn10k_rxtx.h"
-#include <cnxk_ethdev.h>
+#define NSEC_PER_SEC 1000000000L
#define NIX_RX_OFFLOAD_NONE (0)
#define NIX_RX_OFFLOAD_RSS_F BIT(0)
new file mode 100644
@@ -0,0 +1,116 @@
+/* SPDX-License-Identifier: BSD-3-Clause
+ * Copyright(C) 2022 Marvell.
+ */
+
+#ifndef __CN10K_RXTX_H__
+#define __CN10K_RXTX_H__
+
+#include <rte_security.h>
+
+/* ROC Constants */
+#include "roc_constants.h"
+
+/* Platform definition */
+#include "roc_platform.h"
+
+/* IO */
+#if defined(__aarch64__)
+#include "roc_io.h"
+#else
+#include "roc_io_generic.h"
+#endif
+
+/* HW structure definition */
+#include "hw/cpt.h"
+#include "hw/nix.h"
+#include "hw/npa.h"
+#include "hw/npc.h"
+#include "hw/ssow.h"
+
+#include "roc_ie_ot.h"
+
+/* NPA */
+#include "roc_npa_dp.h"
+
+/* SSO */
+#include "roc_sso_dp.h"
+
+/* CPT */
+#include "roc_cpt.h"
+
+/* NIX Inline dev */
+#include "roc_nix_inl_dp.h"
+
+#include "cnxk_ethdev_dp.h"
+
+struct cn10k_eth_txq {
+ uint64_t send_hdr_w0;
+ int64_t fc_cache_pkts;
+ uint64_t *fc_mem;
+ uintptr_t lmt_base;
+ rte_iova_t io_addr;
+ uint16_t sqes_per_sqb_log2;
+ int16_t nb_sqb_bufs_adj;
+ rte_iova_t cpt_io_addr;
+ uint64_t sa_base;
+ uint64_t *cpt_fc;
+ uint16_t cpt_desc;
+ int32_t *cpt_fc_sw;
+ uint64_t lso_tun_fmt;
+ uint64_t ts_mem;
+ uint64_t mark_flag : 8;
+ uint64_t mark_fmt : 48;
+ struct cnxk_eth_txq_comp tx_compl;
+} __plt_cache_aligned;
+
+struct cn10k_eth_rxq {
+ uint64_t mbuf_initializer;
+ uintptr_t desc;
+ void *lookup_mem;
+ uintptr_t cq_door;
+ uint64_t wdata;
+ int64_t *cq_status;
+ uint32_t head;
+ uint32_t qmask;
+ uint32_t available;
+ uint16_t data_off;
+ uint64_t sa_base;
+ uint64_t lmt_base;
+ uint64_t meta_aura;
+ uint16_t rq;
+ struct cnxk_timesync_info *tstamp;
+} __plt_cache_aligned;
+
+/* Private data in sw rsvd area of struct roc_ot_ipsec_inb_sa */
+struct cn10k_inb_priv_data {
+ void *userdata;
+ int reass_dynfield_off;
+ int reass_dynflag_bit;
+ struct cnxk_eth_sec_sess *eth_sec;
+};
+
+struct cn10k_sec_sess_priv {
+ union {
+ struct {
+ uint32_t sa_idx;
+ uint8_t inb_sa : 1;
+ uint8_t outer_ip_ver : 1;
+ uint8_t mode : 1;
+ uint8_t roundup_byte : 5;
+ uint8_t roundup_len;
+ uint16_t partial_len : 10;
+ uint16_t chksum : 2;
+ uint16_t dec_ttl : 1;
+ uint16_t nixtx_off : 1;
+ uint16_t rsvd : 2;
+ };
+
+ uint64_t u64;
+ };
+} __rte_packed;
+
+#define LMT_OFF(lmt_addr, lmt_num, offset) \
+ (void *)((uintptr_t)(lmt_addr) + \
+ ((uint64_t)(lmt_num) << ROC_LMT_LINE_SIZE_LOG2) + (offset))
+
+#endif /* __CN10K_RXTX_H__ */
@@ -5,8 +5,8 @@
#define __CN10K_TX_H__
#include <rte_vect.h>
-
#include <rte_eventdev.h>
+#include "cn10k_rxtx.h"
#define NIX_TX_OFFLOAD_NONE (0)
#define NIX_TX_OFFLOAD_L3_L4_CSUM_F BIT(0)
@@ -22,6 +22,7 @@
#include <rte_tm_driver.h>
#include "roc_api.h"
+#include <cnxk_ethdev_dp.h>
#define CNXK_ETH_DEV_PMD_VERSION "1.0"
@@ -48,19 +49,6 @@
/* LPB & SPB */
#define CNXK_NIX_NUM_POOLS_MAX 2
-/* If PTP is enabled additional SEND MEM DESC is required which
- * takes 2 words, hence max 7 iova address are possible
- */
-#if defined(RTE_LIBRTE_IEEE1588)
-#define CNXK_NIX_TX_NB_SEG_MAX 7
-#else
-#define CNXK_NIX_TX_NB_SEG_MAX 9
-#endif
-
-#define CNXK_NIX_TX_MSEG_SG_DWORDS \
- ((RTE_ALIGN_MUL_CEIL(CNXK_NIX_TX_NB_SEG_MAX, 3) / 3) + \
- CNXK_NIX_TX_NB_SEG_MAX)
-
#define CNXK_NIX_RSS_L3_L4_SRC_DST \
(RTE_ETH_RSS_L3_SRC_ONLY | RTE_ETH_RSS_L3_DST_ONLY | \
RTE_ETH_RSS_L4_SRC_ONLY | RTE_ETH_RSS_L4_DST_ONLY)
@@ -111,63 +99,14 @@
#define RSS_DMAC_INDEX 5
/* Default mark value used when none is provided. */
-#define CNXK_FLOW_ACTION_FLAG_DEFAULT 0xffff
#define CNXK_NIX_MTR_COUNT_MAX 73 /* 64(leaf) + 8(mid) + 1(top) */
/* Default cycle counter mask */
#define CNXK_CYCLECOUNTER_MASK 0xffffffffffffffffULL
-#define CNXK_NIX_TIMESYNC_RX_OFFSET 8
-
-#define PTYPE_NON_TUNNEL_WIDTH 16
-#define PTYPE_TUNNEL_WIDTH 12
-#define PTYPE_NON_TUNNEL_ARRAY_SZ BIT(PTYPE_NON_TUNNEL_WIDTH)
-#define PTYPE_TUNNEL_ARRAY_SZ BIT(PTYPE_TUNNEL_WIDTH)
-#define PTYPE_ARRAY_SZ \
- ((PTYPE_NON_TUNNEL_ARRAY_SZ + PTYPE_TUNNEL_ARRAY_SZ) * sizeof(uint16_t))
-
-/* NIX_RX_PARSE_S's ERRCODE + ERRLEV (12 bits) */
-#define ERRCODE_ERRLEN_WIDTH 12
-#define ERR_ARRAY_SZ ((BIT(ERRCODE_ERRLEN_WIDTH)) * sizeof(uint32_t))
/* Fastpath lookup */
#define CNXK_NIX_FASTPATH_LOOKUP_MEM "cnxk_nix_fastpath_lookup_mem"
-#define CNXK_NIX_UDP_TUN_BITMASK \
- ((1ull << (RTE_MBUF_F_TX_TUNNEL_VXLAN >> 45)) | \
- (1ull << (RTE_MBUF_F_TX_TUNNEL_GENEVE >> 45)))
-
-/* Subtype from inline outbound error event */
-#define CNXK_ETHDEV_SEC_OUTB_EV_SUB 0xFFUL
-
-/* SPI will be in 20 bits of tag */
-#define CNXK_ETHDEV_SPI_TAG_MASK 0xFFFFFUL
-
-#define CNXK_NIX_PFC_CHAN_COUNT 16
-
-#define CNXK_TM_MARK_VLAN_DEI BIT_ULL(0)
-#define CNXK_TM_MARK_IP_DSCP BIT_ULL(1)
-#define CNXK_TM_MARK_IP_ECN BIT_ULL(2)
-
-#define CNXK_TM_MARK_MASK \
- (CNXK_TM_MARK_VLAN_DEI | CNXK_TM_MARK_IP_DSCP | CNXK_TM_MARK_IP_ECN)
-
-#define CNXK_TX_MARK_FMT_MASK (0xFFFFFFFFFFFFull)
-
-struct cnxk_eth_txq_comp {
- uintptr_t desc_base;
- uintptr_t cq_door;
- int64_t *cq_status;
- uint64_t wdata;
- uint32_t head;
- uint32_t qmask;
- uint32_t nb_desc_mask;
- uint32_t available;
- uint32_t sqe_id;
- bool ena;
- struct rte_mbuf **ptr;
- rte_spinlock_t ext_buf_lock;
-};
-
struct cnxk_fc_cfg {
enum rte_eth_fc_mode mode;
uint8_t rx_pause;
@@ -191,15 +130,6 @@ struct cnxk_eth_qconf {
uint8_t valid;
};
-struct cnxk_timesync_info {
- uint8_t rx_ready;
- uint64_t rx_tstamp;
- uint64_t rx_tstamp_dynflag;
- int tstamp_dynfield_offset;
- rte_iova_t tx_tstamp_iova;
- uint64_t *tx_tstamp;
-} __plt_cache_aligned;
-
struct cnxk_meter_node {
#define MAX_PRV_MTR_NODES 10
TAILQ_ENTRY(cnxk_meter_node) next;
@@ -711,89 +641,4 @@ int nix_priority_flow_ctrl_rq_conf(struct rte_eth_dev *eth_dev, uint16_t qid,
int nix_priority_flow_ctrl_sq_conf(struct rte_eth_dev *eth_dev, uint16_t qid,
uint8_t rx_pause, uint8_t tc);
-/* Inlines */
-static __rte_always_inline uint64_t
-cnxk_pktmbuf_detach(struct rte_mbuf *m)
-{
- struct rte_mempool *mp = m->pool;
- uint32_t mbuf_size, buf_len;
- struct rte_mbuf *md;
- uint16_t priv_size;
- uint16_t refcount;
-
- /* Update refcount of direct mbuf */
- md = rte_mbuf_from_indirect(m);
- refcount = rte_mbuf_refcnt_update(md, -1);
-
- priv_size = rte_pktmbuf_priv_size(mp);
- mbuf_size = (uint32_t)(sizeof(struct rte_mbuf) + priv_size);
- buf_len = rte_pktmbuf_data_room_size(mp);
-
- m->priv_size = priv_size;
- m->buf_addr = (char *)m + mbuf_size;
- rte_mbuf_iova_set(m, rte_mempool_virt2iova(m) + mbuf_size);
- m->buf_len = (uint16_t)buf_len;
- rte_pktmbuf_reset_headroom(m);
- m->data_len = 0;
- m->ol_flags = 0;
- m->next = NULL;
- m->nb_segs = 1;
-
- /* Now indirect mbuf is safe to free */
- rte_pktmbuf_free(m);
-
- if (refcount == 0) {
- rte_mbuf_refcnt_set(md, 1);
- md->data_len = 0;
- md->ol_flags = 0;
- md->next = NULL;
- md->nb_segs = 1;
- return 0;
- } else {
- return 1;
- }
-}
-
-static __rte_always_inline uint64_t
-cnxk_nix_prefree_seg(struct rte_mbuf *m)
-{
- if (likely(rte_mbuf_refcnt_read(m) == 1)) {
- if (!RTE_MBUF_DIRECT(m))
- return cnxk_pktmbuf_detach(m);
-
- m->next = NULL;
- m->nb_segs = 1;
- return 0;
- } else if (rte_mbuf_refcnt_update(m, -1) == 0) {
- if (!RTE_MBUF_DIRECT(m))
- return cnxk_pktmbuf_detach(m);
-
- rte_mbuf_refcnt_set(m, 1);
- m->next = NULL;
- m->nb_segs = 1;
- return 0;
- }
-
- /* Mbuf is having refcount more than 1 so need not to be freed */
- return 1;
-}
-
-static inline rte_mbuf_timestamp_t *
-cnxk_nix_timestamp_dynfield(struct rte_mbuf *mbuf,
- struct cnxk_timesync_info *info)
-{
- return RTE_MBUF_DYNFIELD(mbuf, info->tstamp_dynfield_offset,
- rte_mbuf_timestamp_t *);
-}
-
-static __rte_always_inline uintptr_t
-cnxk_nix_sa_base_get(uint16_t port, const void *lookup_mem)
-{
- uintptr_t sa_base_tbl;
-
- sa_base_tbl = (uintptr_t)lookup_mem;
- sa_base_tbl += PTYPE_ARRAY_SZ + ERR_ARRAY_SZ;
- return *((const uintptr_t *)sa_base_tbl + port);
-}
-
#endif /* __CNXK_ETHDEV_H__ */
new file mode 100644
@@ -0,0 +1,167 @@
+/* SPDX-License-Identifier: BSD-3-Clause
+ * Copyright(C) 2022 Marvell.
+ */
+#ifndef __CNXK_ETHDEV_DP_H__
+#define __CNXK_ETHDEV_DP_H__
+
+#include <rte_mbuf.h>
+
+/* If PTP is enabled additional SEND MEM DESC is required which
+ * takes 2 words, hence max 7 iova address are possible
+ */
+#if defined(RTE_LIBRTE_IEEE1588)
+#define CNXK_NIX_TX_NB_SEG_MAX 7
+#else
+#define CNXK_NIX_TX_NB_SEG_MAX 9
+#endif
+
+#define CNXK_NIX_TX_MSEG_SG_DWORDS \
+ ((RTE_ALIGN_MUL_CEIL(CNXK_NIX_TX_NB_SEG_MAX, 3) / 3) + \
+ CNXK_NIX_TX_NB_SEG_MAX)
+
+/* Default mark value used when none is provided. */
+#define CNXK_FLOW_ACTION_FLAG_DEFAULT 0xffff
+#define CNXK_NIX_TIMESYNC_RX_OFFSET 8
+
+#define PTYPE_NON_TUNNEL_WIDTH 16
+#define PTYPE_TUNNEL_WIDTH 12
+#define PTYPE_NON_TUNNEL_ARRAY_SZ BIT(PTYPE_NON_TUNNEL_WIDTH)
+#define PTYPE_TUNNEL_ARRAY_SZ BIT(PTYPE_TUNNEL_WIDTH)
+#define PTYPE_ARRAY_SZ \
+ ((PTYPE_NON_TUNNEL_ARRAY_SZ + PTYPE_TUNNEL_ARRAY_SZ) * sizeof(uint16_t))
+
+/* NIX_RX_PARSE_S's ERRCODE + ERRLEV (12 bits) */
+#define ERRCODE_ERRLEN_WIDTH 12
+#define ERR_ARRAY_SZ ((BIT(ERRCODE_ERRLEN_WIDTH)) * sizeof(uint32_t))
+
+#define CNXK_NIX_UDP_TUN_BITMASK \
+ ((1ull << (RTE_MBUF_F_TX_TUNNEL_VXLAN >> 45)) | \
+ (1ull << (RTE_MBUF_F_TX_TUNNEL_GENEVE >> 45)))
+
+/* Subtype from inline outbound error event */
+#define CNXK_ETHDEV_SEC_OUTB_EV_SUB 0xFFUL
+
+/* SPI will be in 20 bits of tag */
+#define CNXK_ETHDEV_SPI_TAG_MASK 0xFFFFFUL
+
+#define CNXK_NIX_PFC_CHAN_COUNT 16
+
+#define CNXK_TM_MARK_VLAN_DEI BIT_ULL(0)
+#define CNXK_TM_MARK_IP_DSCP BIT_ULL(1)
+#define CNXK_TM_MARK_IP_ECN BIT_ULL(2)
+
+#define CNXK_TM_MARK_MASK \
+ (CNXK_TM_MARK_VLAN_DEI | CNXK_TM_MARK_IP_DSCP | CNXK_TM_MARK_IP_ECN)
+
+#define CNXK_TX_MARK_FMT_MASK (0xFFFFFFFFFFFFull)
+
+struct cnxk_eth_txq_comp {
+ uintptr_t desc_base;
+ uintptr_t cq_door;
+ int64_t *cq_status;
+ uint64_t wdata;
+ uint32_t head;
+ uint32_t qmask;
+ uint32_t nb_desc_mask;
+ uint32_t available;
+ uint32_t sqe_id;
+ bool ena;
+ struct rte_mbuf **ptr;
+ rte_spinlock_t ext_buf_lock;
+};
+
+struct cnxk_timesync_info {
+ uint8_t rx_ready;
+ uint64_t rx_tstamp;
+ uint64_t rx_tstamp_dynflag;
+ int tstamp_dynfield_offset;
+ rte_iova_t tx_tstamp_iova;
+ uint64_t *tx_tstamp;
+} __plt_cache_aligned;
+
+/* Inlines */
+static __rte_always_inline uint64_t
+cnxk_pktmbuf_detach(struct rte_mbuf *m)
+{
+ struct rte_mempool *mp = m->pool;
+ uint32_t mbuf_size, buf_len;
+ struct rte_mbuf *md;
+ uint16_t priv_size;
+ uint16_t refcount;
+
+ /* Update refcount of direct mbuf */
+ md = rte_mbuf_from_indirect(m);
+ refcount = rte_mbuf_refcnt_update(md, -1);
+
+ priv_size = rte_pktmbuf_priv_size(mp);
+ mbuf_size = (uint32_t)(sizeof(struct rte_mbuf) + priv_size);
+ buf_len = rte_pktmbuf_data_room_size(mp);
+
+ m->priv_size = priv_size;
+ m->buf_addr = (char *)m + mbuf_size;
+ rte_mbuf_iova_set(m, rte_mempool_virt2iova(m) + mbuf_size);
+ m->buf_len = (uint16_t)buf_len;
+ rte_pktmbuf_reset_headroom(m);
+ m->data_len = 0;
+ m->ol_flags = 0;
+ m->next = NULL;
+ m->nb_segs = 1;
+
+ /* Now indirect mbuf is safe to free */
+ rte_pktmbuf_free(m);
+
+ if (refcount == 0) {
+ rte_mbuf_refcnt_set(md, 1);
+ md->data_len = 0;
+ md->ol_flags = 0;
+ md->next = NULL;
+ md->nb_segs = 1;
+ return 0;
+ } else {
+ return 1;
+ }
+}
+
+static __rte_always_inline uint64_t
+cnxk_nix_prefree_seg(struct rte_mbuf *m)
+{
+ if (likely(rte_mbuf_refcnt_read(m) == 1)) {
+ if (!RTE_MBUF_DIRECT(m))
+ return cnxk_pktmbuf_detach(m);
+
+ m->next = NULL;
+ m->nb_segs = 1;
+ return 0;
+ } else if (rte_mbuf_refcnt_update(m, -1) == 0) {
+ if (!RTE_MBUF_DIRECT(m))
+ return cnxk_pktmbuf_detach(m);
+
+ rte_mbuf_refcnt_set(m, 1);
+ m->next = NULL;
+ m->nb_segs = 1;
+ return 0;
+ }
+
+ /* Mbuf is having refcount more than 1 so need not to be freed */
+ return 1;
+}
+
+static inline rte_mbuf_timestamp_t *
+cnxk_nix_timestamp_dynfield(struct rte_mbuf *mbuf,
+ struct cnxk_timesync_info *info)
+{
+ return RTE_MBUF_DYNFIELD(mbuf, info->tstamp_dynfield_offset,
+ rte_mbuf_timestamp_t *);
+}
+
+static __rte_always_inline uintptr_t
+cnxk_nix_sa_base_get(uint16_t port, const void *lookup_mem)
+{
+ uintptr_t sa_base_tbl;
+
+ sa_base_tbl = (uintptr_t)lookup_mem;
+ sa_base_tbl += PTYPE_ARRAY_SZ + ERR_ARRAY_SZ;
+ return *((const uintptr_t *)sa_base_tbl + port);
+}
+
+#endif /* __CNXK_ETHDEV_DP_H__ */
@@ -2,9 +2,12 @@
* Copyright(C) 2022 Marvell.
*/
-#include "cn10k_ethdev.h"
#include "cn10k_rx.h"
+#ifdef _ROC_API_H_
+#error "roc_api.h is included"
+#endif
+
#define R(name, flags) \
NIX_RX_RECV(cn10k_nix_recv_pkts_##name, flags) \
NIX_RX_RECV(cn10k_nix_recv_pkts_reas_##name, flags | NIX_RX_REAS_F)
@@ -2,9 +2,12 @@
* Copyright(C) 2022 Marvell.
*/
-#include "cn10k_ethdev.h"
#include "cn10k_rx.h"
+#ifdef _ROC_API_H_
+#error "roc_api.h is included"
+#endif
+
#define R(name, flags) \
NIX_RX_RECV_MSEG(cn10k_nix_recv_pkts_mseg_##name, flags) \
NIX_RX_RECV_MSEG(cn10k_nix_recv_pkts_reas_mseg_##name, flags | NIX_RX_REAS_F)
@@ -2,9 +2,12 @@
* Copyright(C) 2022 Marvell.
*/
-#include "cn10k_ethdev.h"
#include "cn10k_rx.h"
+#ifdef _ROC_API_H_
+#error "roc_api.h is included"
+#endif
+
#define R(name, flags) \
NIX_RX_RECV_VEC(cn10k_nix_recv_pkts_vec_##name, flags) \
NIX_RX_RECV_VEC(cn10k_nix_recv_pkts_reas_vec_##name, flags | NIX_RX_REAS_F)
@@ -2,9 +2,12 @@
* Copyright(C) 2022 Marvell.
*/
-#include "cn10k_ethdev.h"
#include "cn10k_rx.h"
+#ifdef _ROC_API_H_
+#error "roc_api.h is included"
+#endif
+
#define R(name, flags) \
NIX_RX_RECV_VEC_MSEG(cn10k_nix_recv_pkts_vec_mseg_##name, flags) \
NIX_RX_RECV_VEC_MSEG(cn10k_nix_recv_pkts_reas_vec_mseg_##name, \
@@ -2,9 +2,12 @@
* Copyright(C) 2022 Marvell.
*/
-#include "cn10k_ethdev.h"
#include "cn10k_rx.h"
+#ifdef _ROC_API_H_
+#error "roc_api.h is included"
+#endif
+
#define R(name, flags) \
NIX_RX_RECV(cn10k_nix_recv_pkts_##name, flags) \
NIX_RX_RECV(cn10k_nix_recv_pkts_reas_##name, flags | NIX_RX_REAS_F)
@@ -2,9 +2,12 @@
* Copyright(C) 2022 Marvell.
*/
-#include "cn10k_ethdev.h"
#include "cn10k_rx.h"
+#ifdef _ROC_API_H_
+#error "roc_api.h is included"
+#endif
+
#define R(name, flags) \
NIX_RX_RECV_MSEG(cn10k_nix_recv_pkts_mseg_##name, flags) \
NIX_RX_RECV_MSEG(cn10k_nix_recv_pkts_reas_mseg_##name, flags | NIX_RX_REAS_F)
@@ -2,9 +2,12 @@
* Copyright(C) 2022 Marvell.
*/
-#include "cn10k_ethdev.h"
#include "cn10k_rx.h"
+#ifdef _ROC_API_H_
+#error "roc_api.h is included"
+#endif
+
#define R(name, flags) \
NIX_RX_RECV_VEC(cn10k_nix_recv_pkts_vec_##name, flags) \
NIX_RX_RECV_VEC(cn10k_nix_recv_pkts_reas_vec_##name, flags | NIX_RX_REAS_F)
@@ -2,9 +2,12 @@
* Copyright(C) 2022 Marvell.
*/
-#include "cn10k_ethdev.h"
#include "cn10k_rx.h"
+#ifdef _ROC_API_H_
+#error "roc_api.h is included"
+#endif
+
#define R(name, flags) \
NIX_RX_RECV_VEC_MSEG(cn10k_nix_recv_pkts_vec_mseg_##name, flags) \
NIX_RX_RECV_VEC_MSEG(cn10k_nix_recv_pkts_reas_vec_mseg_##name, \
@@ -2,9 +2,12 @@
* Copyright(C) 2022 Marvell.
*/
-#include "cn10k_ethdev.h"
#include "cn10k_rx.h"
+#ifdef _ROC_API_H_
+#error "roc_api.h is included"
+#endif
+
#define R(name, flags) \
NIX_RX_RECV(cn10k_nix_recv_pkts_##name, flags) \
NIX_RX_RECV(cn10k_nix_recv_pkts_reas_##name, flags | NIX_RX_REAS_F)
@@ -2,9 +2,12 @@
* Copyright(C) 2022 Marvell.
*/
-#include "cn10k_ethdev.h"
#include "cn10k_rx.h"
+#ifdef _ROC_API_H_
+#error "roc_api.h is included"
+#endif
+
#define R(name, flags) \
NIX_RX_RECV_MSEG(cn10k_nix_recv_pkts_mseg_##name, flags) \
NIX_RX_RECV_MSEG(cn10k_nix_recv_pkts_reas_mseg_##name, flags | NIX_RX_REAS_F)
@@ -2,9 +2,12 @@
* Copyright(C) 2022 Marvell.
*/
-#include "cn10k_ethdev.h"
#include "cn10k_rx.h"
+#ifdef _ROC_API_H_
+#error "roc_api.h is included"
+#endif
+
#define R(name, flags) \
NIX_RX_RECV_VEC(cn10k_nix_recv_pkts_vec_##name, flags) \
NIX_RX_RECV_VEC(cn10k_nix_recv_pkts_reas_vec_##name, flags | NIX_RX_REAS_F)
@@ -2,9 +2,12 @@
* Copyright(C) 2022 Marvell.
*/
-#include "cn10k_ethdev.h"
#include "cn10k_rx.h"
+#ifdef _ROC_API_H_
+#error "roc_api.h is included"
+#endif
+
#define R(name, flags) \
NIX_RX_RECV_VEC_MSEG(cn10k_nix_recv_pkts_vec_mseg_##name, flags) \
NIX_RX_RECV_VEC_MSEG(cn10k_nix_recv_pkts_reas_vec_mseg_##name, \
@@ -2,9 +2,12 @@
* Copyright(C) 2022 Marvell.
*/
-#include "cn10k_ethdev.h"
#include "cn10k_rx.h"
+#ifdef _ROC_API_H_
+#error "roc_api.h is included"
+#endif
+
#define R(name, flags) \
NIX_RX_RECV(cn10k_nix_recv_pkts_##name, flags) \
NIX_RX_RECV(cn10k_nix_recv_pkts_reas_##name, flags | NIX_RX_REAS_F)
@@ -2,9 +2,12 @@
* Copyright(C) 2022 Marvell.
*/
-#include "cn10k_ethdev.h"
#include "cn10k_rx.h"
+#ifdef _ROC_API_H_
+#error "roc_api.h is included"
+#endif
+
#define R(name, flags) \
NIX_RX_RECV_MSEG(cn10k_nix_recv_pkts_mseg_##name, flags) \
NIX_RX_RECV_MSEG(cn10k_nix_recv_pkts_reas_mseg_##name, flags | NIX_RX_REAS_F)
@@ -2,9 +2,12 @@
* Copyright(C) 2022 Marvell.
*/
-#include "cn10k_ethdev.h"
#include "cn10k_rx.h"
+#ifdef _ROC_API_H_
+#error "roc_api.h is included"
+#endif
+
#define R(name, flags) \
NIX_RX_RECV_VEC(cn10k_nix_recv_pkts_vec_##name, flags) \
NIX_RX_RECV_VEC(cn10k_nix_recv_pkts_reas_vec_##name, flags | NIX_RX_REAS_F)
@@ -2,9 +2,12 @@
* Copyright(C) 2022 Marvell.
*/
-#include "cn10k_ethdev.h"
#include "cn10k_rx.h"
+#ifdef _ROC_API_H_
+#error "roc_api.h is included"
+#endif
+
#define R(name, flags) \
NIX_RX_RECV_VEC_MSEG(cn10k_nix_recv_pkts_vec_mseg_##name, flags) \
NIX_RX_RECV_VEC_MSEG(cn10k_nix_recv_pkts_reas_vec_mseg_##name, \
@@ -2,9 +2,12 @@
* Copyright(C) 2022 Marvell.
*/
-#include "cn10k_ethdev.h"
#include "cn10k_rx.h"
+#ifdef _ROC_API_H_
+#error "roc_api.h is included"
+#endif
+
#define R(name, flags) \
NIX_RX_RECV(cn10k_nix_recv_pkts_##name, flags) \
NIX_RX_RECV(cn10k_nix_recv_pkts_reas_##name, flags | NIX_RX_REAS_F)
@@ -2,9 +2,12 @@
* Copyright(C) 2022 Marvell.
*/
-#include "cn10k_ethdev.h"
#include "cn10k_rx.h"
+#ifdef _ROC_API_H_
+#error "roc_api.h is included"
+#endif
+
#define R(name, flags) \
NIX_RX_RECV_MSEG(cn10k_nix_recv_pkts_mseg_##name, flags) \
NIX_RX_RECV_MSEG(cn10k_nix_recv_pkts_reas_mseg_##name, flags | NIX_RX_REAS_F)
@@ -2,9 +2,12 @@
* Copyright(C) 2022 Marvell.
*/
-#include "cn10k_ethdev.h"
#include "cn10k_rx.h"
+#ifdef _ROC_API_H_
+#error "roc_api.h is included"
+#endif
+
#define R(name, flags) \
NIX_RX_RECV_VEC(cn10k_nix_recv_pkts_vec_##name, flags) \
NIX_RX_RECV_VEC(cn10k_nix_recv_pkts_reas_vec_##name, flags | NIX_RX_REAS_F)
@@ -2,9 +2,12 @@
* Copyright(C) 2022 Marvell.
*/
-#include "cn10k_ethdev.h"
#include "cn10k_rx.h"
+#ifdef _ROC_API_H_
+#error "roc_api.h is included"
+#endif
+
#define R(name, flags) \
NIX_RX_RECV_VEC_MSEG(cn10k_nix_recv_pkts_vec_mseg_##name, flags) \
NIX_RX_RECV_VEC_MSEG(cn10k_nix_recv_pkts_reas_vec_mseg_##name, \
@@ -2,9 +2,12 @@
* Copyright(C) 2022 Marvell.
*/
-#include "cn10k_ethdev.h"
#include "cn10k_rx.h"
+#ifdef _ROC_API_H_
+#error "roc_api.h is included"
+#endif
+
#define R(name, flags) \
NIX_RX_RECV(cn10k_nix_recv_pkts_##name, flags) \
NIX_RX_RECV(cn10k_nix_recv_pkts_reas_##name, flags | NIX_RX_REAS_F)
@@ -2,9 +2,12 @@
* Copyright(C) 2022 Marvell.
*/
-#include "cn10k_ethdev.h"
#include "cn10k_rx.h"
+#ifdef _ROC_API_H_
+#error "roc_api.h is included"
+#endif
+
#define R(name, flags) \
NIX_RX_RECV_MSEG(cn10k_nix_recv_pkts_mseg_##name, flags) \
NIX_RX_RECV_MSEG(cn10k_nix_recv_pkts_reas_mseg_##name, flags | NIX_RX_REAS_F)
@@ -2,9 +2,12 @@
* Copyright(C) 2022 Marvell.
*/
-#include "cn10k_ethdev.h"
#include "cn10k_rx.h"
+#ifdef _ROC_API_H_
+#error "roc_api.h is included"
+#endif
+
#define R(name, flags) \
NIX_RX_RECV_VEC(cn10k_nix_recv_pkts_vec_##name, flags) \
NIX_RX_RECV_VEC(cn10k_nix_recv_pkts_reas_vec_##name, flags | NIX_RX_REAS_F)
@@ -2,9 +2,12 @@
* Copyright(C) 2022 Marvell.
*/
-#include "cn10k_ethdev.h"
#include "cn10k_rx.h"
+#ifdef _ROC_API_H_
+#error "roc_api.h is included"
+#endif
+
#define R(name, flags) \
NIX_RX_RECV_VEC_MSEG(cn10k_nix_recv_pkts_vec_mseg_##name, flags) \
NIX_RX_RECV_VEC_MSEG(cn10k_nix_recv_pkts_reas_vec_mseg_##name, \
@@ -2,9 +2,12 @@
* Copyright(C) 2022 Marvell.
*/
-#include "cn10k_ethdev.h"
#include "cn10k_rx.h"
+#ifdef _ROC_API_H_
+#error "roc_api.h is included"
+#endif
+
#define R(name, flags) \
NIX_RX_RECV(cn10k_nix_recv_pkts_##name, flags) \
NIX_RX_RECV(cn10k_nix_recv_pkts_reas_##name, flags | NIX_RX_REAS_F)
@@ -2,9 +2,12 @@
* Copyright(C) 2022 Marvell.
*/
-#include "cn10k_ethdev.h"
#include "cn10k_rx.h"
+#ifdef _ROC_API_H_
+#error "roc_api.h is included"
+#endif
+
#define R(name, flags) \
NIX_RX_RECV_MSEG(cn10k_nix_recv_pkts_mseg_##name, flags) \
NIX_RX_RECV_MSEG(cn10k_nix_recv_pkts_reas_mseg_##name, flags | NIX_RX_REAS_F)
@@ -2,9 +2,12 @@
* Copyright(C) 2022 Marvell.
*/
-#include "cn10k_ethdev.h"
#include "cn10k_rx.h"
+#ifdef _ROC_API_H_
+#error "roc_api.h is included"
+#endif
+
#define R(name, flags) \
NIX_RX_RECV_VEC(cn10k_nix_recv_pkts_vec_##name, flags) \
NIX_RX_RECV_VEC(cn10k_nix_recv_pkts_reas_vec_##name, flags | NIX_RX_REAS_F)
@@ -2,9 +2,12 @@
* Copyright(C) 2022 Marvell.
*/
-#include "cn10k_ethdev.h"
#include "cn10k_rx.h"
+#ifdef _ROC_API_H_
+#error "roc_api.h is included"
+#endif
+
#define R(name, flags) \
NIX_RX_RECV_VEC_MSEG(cn10k_nix_recv_pkts_vec_mseg_##name, flags) \
NIX_RX_RECV_VEC_MSEG(cn10k_nix_recv_pkts_reas_vec_mseg_##name, \
@@ -2,9 +2,12 @@
* Copyright(C) 2022 Marvell.
*/
-#include "cn10k_ethdev.h"
#include "cn10k_rx.h"
+#ifdef _ROC_API_H_
+#error "roc_api.h is included"
+#endif
+
#define R(name, flags) \
NIX_RX_RECV(cn10k_nix_recv_pkts_##name, flags) \
NIX_RX_RECV(cn10k_nix_recv_pkts_reas_##name, flags | NIX_RX_REAS_F)
@@ -2,9 +2,12 @@
* Copyright(C) 2022 Marvell.
*/
-#include "cn10k_ethdev.h"
#include "cn10k_rx.h"
+#ifdef _ROC_API_H_
+#error "roc_api.h is included"
+#endif
+
#define R(name, flags) \
NIX_RX_RECV_MSEG(cn10k_nix_recv_pkts_mseg_##name, flags) \
NIX_RX_RECV_MSEG(cn10k_nix_recv_pkts_reas_mseg_##name, flags | NIX_RX_REAS_F)
@@ -2,9 +2,12 @@
* Copyright(C) 2022 Marvell.
*/
-#include "cn10k_ethdev.h"
#include "cn10k_rx.h"
+#ifdef _ROC_API_H_
+#error "roc_api.h is included"
+#endif
+
#define R(name, flags) \
NIX_RX_RECV_VEC(cn10k_nix_recv_pkts_vec_##name, flags) \
NIX_RX_RECV_VEC(cn10k_nix_recv_pkts_reas_vec_##name, flags | NIX_RX_REAS_F)
@@ -2,9 +2,12 @@
* Copyright(C) 2022 Marvell.
*/
-#include "cn10k_ethdev.h"
#include "cn10k_rx.h"
+#ifdef _ROC_API_H_
+#error "roc_api.h is included"
+#endif
+
#define R(name, flags) \
NIX_RX_RECV_VEC_MSEG(cn10k_nix_recv_pkts_vec_mseg_##name, flags) \
NIX_RX_RECV_VEC_MSEG(cn10k_nix_recv_pkts_reas_vec_mseg_##name, \
@@ -2,9 +2,12 @@
* Copyright(C) 2022 Marvell.
*/
-#include "cn10k_ethdev.h"
#include "cn10k_tx.h"
+#ifdef _ROC_API_H_
+#error "roc_api.h is included"
+#endif
+
#define T(name, sz, flags) NIX_TX_XMIT(cn10k_nix_xmit_pkts_##name, sz, flags)
NIX_TX_FASTPATH_MODES_0_15
@@ -2,9 +2,12 @@
* Copyright(C) 2022 Marvell.
*/
-#include "cn10k_ethdev.h"
#include "cn10k_tx.h"
+#ifdef _ROC_API_H_
+#error "roc_api.h is included"
+#endif
+
#define T(name, sz, flags) \
NIX_TX_XMIT_MSEG(cn10k_nix_xmit_pkts_mseg_##name, sz, flags)
@@ -2,9 +2,12 @@
* Copyright(C) 2022 Marvell.
*/
-#include "cn10k_ethdev.h"
#include "cn10k_tx.h"
+#ifdef _ROC_API_H_
+#error "roc_api.h is included"
+#endif
+
#define T(name, sz, flags) \
NIX_TX_XMIT_VEC(cn10k_nix_xmit_pkts_vec_##name, sz, flags)
@@ -2,9 +2,12 @@
* Copyright(C) 2022 Marvell.
*/
-#include "cn10k_ethdev.h"
#include "cn10k_tx.h"
+#ifdef _ROC_API_H_
+#error "roc_api.h is included"
+#endif
+
#define T(name, sz, flags) \
NIX_TX_XMIT_VEC_MSEG(cn10k_nix_xmit_pkts_vec_mseg_##name, sz, flags)
@@ -2,9 +2,12 @@
* Copyright(C) 2022 Marvell.
*/
-#include "cn10k_ethdev.h"
#include "cn10k_tx.h"
+#ifdef _ROC_API_H_
+#error "roc_api.h is included"
+#endif
+
#define T(name, sz, flags) NIX_TX_XMIT(cn10k_nix_xmit_pkts_##name, sz, flags)
NIX_TX_FASTPATH_MODES_112_127
@@ -2,9 +2,12 @@
* Copyright(C) 2022 Marvell.
*/
-#include "cn10k_ethdev.h"
#include "cn10k_tx.h"
+#ifdef _ROC_API_H_
+#error "roc_api.h is included"
+#endif
+
#define T(name, sz, flags) \
NIX_TX_XMIT_MSEG(cn10k_nix_xmit_pkts_mseg_##name, sz, flags)
@@ -2,9 +2,12 @@
* Copyright(C) 2022 Marvell.
*/
-#include "cn10k_ethdev.h"
#include "cn10k_tx.h"
+#ifdef _ROC_API_H_
+#error "roc_api.h is included"
+#endif
+
#define T(name, sz, flags) \
NIX_TX_XMIT_VEC(cn10k_nix_xmit_pkts_vec_##name, sz, flags)
@@ -2,9 +2,12 @@
* Copyright(C) 2022 Marvell.
*/
-#include "cn10k_ethdev.h"
#include "cn10k_tx.h"
+#ifdef _ROC_API_H_
+#error "roc_api.h is included"
+#endif
+
#define T(name, sz, flags) \
NIX_TX_XMIT_VEC_MSEG(cn10k_nix_xmit_pkts_vec_mseg_##name, sz, flags)
@@ -2,9 +2,12 @@
* Copyright(C) 2022 Marvell.
*/
-#include "cn10k_ethdev.h"
#include "cn10k_tx.h"
+#ifdef _ROC_API_H_
+#error "roc_api.h is included"
+#endif
+
#define T(name, sz, flags) NIX_TX_XMIT(cn10k_nix_xmit_pkts_##name, sz, flags)
NIX_TX_FASTPATH_MODES_16_31
@@ -2,9 +2,12 @@
* Copyright(C) 2022 Marvell.
*/
-#include "cn10k_ethdev.h"
#include "cn10k_tx.h"
+#ifdef _ROC_API_H_
+#error "roc_api.h is included"
+#endif
+
#define T(name, sz, flags) \
NIX_TX_XMIT_MSEG(cn10k_nix_xmit_pkts_mseg_##name, sz, flags)
@@ -2,9 +2,12 @@
* Copyright(C) 2022 Marvell.
*/
-#include "cn10k_ethdev.h"
#include "cn10k_tx.h"
+#ifdef _ROC_API_H_
+#error "roc_api.h is included"
+#endif
+
#define T(name, sz, flags) \
NIX_TX_XMIT_VEC(cn10k_nix_xmit_pkts_vec_##name, sz, flags)
@@ -2,9 +2,12 @@
* Copyright(C) 2022 Marvell.
*/
-#include "cn10k_ethdev.h"
#include "cn10k_tx.h"
+#ifdef _ROC_API_H_
+#error "roc_api.h is included"
+#endif
+
#define T(name, sz, flags) \
NIX_TX_XMIT_VEC_MSEG(cn10k_nix_xmit_pkts_vec_mseg_##name, sz, flags)
@@ -2,9 +2,12 @@
* Copyright(C) 2022 Marvell.
*/
-#include "cn10k_ethdev.h"
#include "cn10k_tx.h"
+#ifdef _ROC_API_H_
+#error "roc_api.h is included"
+#endif
+
#define T(name, sz, flags) NIX_TX_XMIT(cn10k_nix_xmit_pkts_##name, sz, flags)
NIX_TX_FASTPATH_MODES_32_47
@@ -2,9 +2,12 @@
* Copyright(C) 2022 Marvell.
*/
-#include "cn10k_ethdev.h"
#include "cn10k_tx.h"
+#ifdef _ROC_API_H_
+#error "roc_api.h is included"
+#endif
+
#define T(name, sz, flags) \
NIX_TX_XMIT_MSEG(cn10k_nix_xmit_pkts_mseg_##name, sz, flags)
@@ -2,9 +2,12 @@
* Copyright(C) 2022 Marvell.
*/
-#include "cn10k_ethdev.h"
#include "cn10k_tx.h"
+#ifdef _ROC_API_H_
+#error "roc_api.h is included"
+#endif
+
#define T(name, sz, flags) \
NIX_TX_XMIT_VEC(cn10k_nix_xmit_pkts_vec_##name, sz, flags)
@@ -2,9 +2,12 @@
* Copyright(C) 2022 Marvell.
*/
-#include "cn10k_ethdev.h"
#include "cn10k_tx.h"
+#ifdef _ROC_API_H_
+#error "roc_api.h is included"
+#endif
+
#define T(name, sz, flags) \
NIX_TX_XMIT_VEC_MSEG(cn10k_nix_xmit_pkts_vec_mseg_##name, sz, flags)
@@ -2,9 +2,12 @@
* Copyright(C) 2022 Marvell.
*/
-#include "cn10k_ethdev.h"
#include "cn10k_tx.h"
+#ifdef _ROC_API_H_
+#error "roc_api.h is included"
+#endif
+
#define T(name, sz, flags) NIX_TX_XMIT(cn10k_nix_xmit_pkts_##name, sz, flags)
NIX_TX_FASTPATH_MODES_48_63
@@ -2,9 +2,12 @@
* Copyright(C) 2022 Marvell.
*/
-#include "cn10k_ethdev.h"
#include "cn10k_tx.h"
+#ifdef _ROC_API_H_
+#error "roc_api.h is included"
+#endif
+
#define T(name, sz, flags) \
NIX_TX_XMIT_MSEG(cn10k_nix_xmit_pkts_mseg_##name, sz, flags)
@@ -2,9 +2,12 @@
* Copyright(C) 2022 Marvell.
*/
-#include "cn10k_ethdev.h"
#include "cn10k_tx.h"
+#ifdef _ROC_API_H_
+#error "roc_api.h is included"
+#endif
+
#define T(name, sz, flags) \
NIX_TX_XMIT_VEC(cn10k_nix_xmit_pkts_vec_##name, sz, flags)
@@ -2,9 +2,12 @@
* Copyright(C) 2022 Marvell.
*/
-#include "cn10k_ethdev.h"
#include "cn10k_tx.h"
+#ifdef _ROC_API_H_
+#error "roc_api.h is included"
+#endif
+
#define T(name, sz, flags) \
NIX_TX_XMIT_VEC_MSEG(cn10k_nix_xmit_pkts_vec_mseg_##name, sz, flags)
@@ -2,9 +2,12 @@
* Copyright(C) 2022 Marvell.
*/
-#include "cn10k_ethdev.h"
#include "cn10k_tx.h"
+#ifdef _ROC_API_H_
+#error "roc_api.h is included"
+#endif
+
#define T(name, sz, flags) NIX_TX_XMIT(cn10k_nix_xmit_pkts_##name, sz, flags)
NIX_TX_FASTPATH_MODES_64_79
@@ -2,9 +2,12 @@
* Copyright(C) 2022 Marvell.
*/
-#include "cn10k_ethdev.h"
#include "cn10k_tx.h"
+#ifdef _ROC_API_H_
+#error "roc_api.h is included"
+#endif
+
#define T(name, sz, flags) \
NIX_TX_XMIT_MSEG(cn10k_nix_xmit_pkts_mseg_##name, sz, flags)
@@ -2,9 +2,12 @@
* Copyright(C) 2022 Marvell.
*/
-#include "cn10k_ethdev.h"
#include "cn10k_tx.h"
+#ifdef _ROC_API_H_
+#error "roc_api.h is included"
+#endif
+
#define T(name, sz, flags) \
NIX_TX_XMIT_VEC(cn10k_nix_xmit_pkts_vec_##name, sz, flags)
@@ -2,9 +2,12 @@
* Copyright(C) 2022 Marvell.
*/
-#include "cn10k_ethdev.h"
#include "cn10k_tx.h"
+#ifdef _ROC_API_H_
+#error "roc_api.h is included"
+#endif
+
#define T(name, sz, flags) \
NIX_TX_XMIT_VEC_MSEG(cn10k_nix_xmit_pkts_vec_mseg_##name, sz, flags)
@@ -2,9 +2,12 @@
* Copyright(C) 2022 Marvell.
*/
-#include "cn10k_ethdev.h"
#include "cn10k_tx.h"
+#ifdef _ROC_API_H_
+#error "roc_api.h is included"
+#endif
+
#define T(name, sz, flags) NIX_TX_XMIT(cn10k_nix_xmit_pkts_##name, sz, flags)
NIX_TX_FASTPATH_MODES_80_95
@@ -2,9 +2,12 @@
* Copyright(C) 2022 Marvell.
*/
-#include "cn10k_ethdev.h"
#include "cn10k_tx.h"
+#ifdef _ROC_API_H_
+#error "roc_api.h is included"
+#endif
+
#define T(name, sz, flags) \
NIX_TX_XMIT_MSEG(cn10k_nix_xmit_pkts_mseg_##name, sz, flags)
@@ -2,9 +2,12 @@
* Copyright(C) 2022 Marvell.
*/
-#include "cn10k_ethdev.h"
#include "cn10k_tx.h"
+#ifdef _ROC_API_H_
+#error "roc_api.h is included"
+#endif
+
#define T(name, sz, flags) \
NIX_TX_XMIT_VEC(cn10k_nix_xmit_pkts_vec_##name, sz, flags)
@@ -2,9 +2,12 @@
* Copyright(C) 2022 Marvell.
*/
-#include "cn10k_ethdev.h"
#include "cn10k_tx.h"
+#ifdef _ROC_API_H_
+#error "roc_api.h is included"
+#endif
+
#define T(name, sz, flags) \
NIX_TX_XMIT_VEC_MSEG(cn10k_nix_xmit_pkts_vec_mseg_##name, sz, flags)
@@ -2,9 +2,12 @@
* Copyright(C) 2022 Marvell.
*/
-#include "cn10k_ethdev.h"
#include "cn10k_tx.h"
+#ifdef _ROC_API_H_
+#error "roc_api.h is included"
+#endif
+
#define T(name, sz, flags) NIX_TX_XMIT(cn10k_nix_xmit_pkts_##name, sz, flags)
NIX_TX_FASTPATH_MODES_96_111
@@ -2,9 +2,12 @@
* Copyright(C) 2022 Marvell.
*/
-#include "cn10k_ethdev.h"
#include "cn10k_tx.h"
+#ifdef _ROC_API_H_
+#error "roc_api.h is included"
+#endif
+
#define T(name, sz, flags) \
NIX_TX_XMIT_MSEG(cn10k_nix_xmit_pkts_mseg_##name, sz, flags)
@@ -2,9 +2,12 @@
* Copyright(C) 2022 Marvell.
*/
-#include "cn10k_ethdev.h"
#include "cn10k_tx.h"
+#ifdef _ROC_API_H_
+#error "roc_api.h is included"
+#endif
+
#define T(name, sz, flags) \
NIX_TX_XMIT_VEC(cn10k_nix_xmit_pkts_vec_##name, sz, flags)
@@ -2,9 +2,12 @@
* Copyright(C) 2022 Marvell.
*/
-#include "cn10k_ethdev.h"
#include "cn10k_tx.h"
+#ifdef _ROC_API_H_
+#error "roc_api.h is included"
+#endif
+
#define T(name, sz, flags) \
NIX_TX_XMIT_VEC_MSEG(cn10k_nix_xmit_pkts_vec_mseg_##name, sz, flags)