[PATCH 1/8] net/cnxk: support of plain packet reassembly

Rahul Bhansali
2026-02-19T09:08:58Z

From: Rakesh Kudurumalla <rkudurumalla@marvell.com>

Adds support of plain packet reassembly by configuring
UCAST_CPT rule.

Signed-off-by: Rakesh Kudurumalla <rkudurumalla@marvell.com>
---
doc/guides/rel_notes/release_26_03.rst | 1 +
drivers/common/cnxk/roc_nix_inl.h | 2 +-
.../common/cnxk/roc_platform_base_symbols.c | 1 +
drivers/net/cnxk/cn20k_ethdev.c | 78 ++++--
drivers/net/cnxk/cn20k_rx.h | 6 +-
drivers/net/cnxk/cnxk_ethdev.c | 233 ++++++++++++++----
drivers/net/cnxk/cnxk_ethdev.h | 8 +
7 files changed, 270 insertions(+), 59 deletions(-)

diff --git a/doc/guides/rel_notes/release_26_03.rst b/doc/guides/rel_notes/release_26_03.rst
index b4499ec066..b1f9b3c82b 100644
--- a/doc/guides/rel_notes/release_26_03.rst
+++ b/doc/guides/rel_notes/release_26_03.rst
@@ -80,6 +80,7 @@ New Features
* **Updated Marvell cnxk net driver.**

* Added out-of-place support for CN20K SoC.
+ * Added plain packet reassembly support for CN20K SoC.

* **Updated ZTE zxdh ethernet driver.**

diff --git a/drivers/common/cnxk/roc_nix_inl.h b/drivers/common/cnxk/roc_nix_inl.h
index 68f395438c..596f12d1c7 100644
--- a/drivers/common/cnxk/roc_nix_inl.h
+++ b/drivers/common/cnxk/roc_nix_inl.h
@@ -160,7 +160,7 @@ bool __roc_api roc_nix_inl_inb_is_enabled(struct roc_nix *roc_nix);
uintptr_t __roc_api roc_nix_inl_inb_sa_base_get(struct roc_nix *roc_nix,
bool inl_dev_sa);
uint16_t roc_nix_inl_inb_ipsec_profile_id_get(struct roc_nix *roc_nix, bool inb_inl_dev);
-uint16_t roc_nix_inl_inb_reass_profile_id_get(struct roc_nix *roc_nix, bool inb_inl_dev);
+uint16_t __roc_api roc_nix_inl_inb_reass_profile_id_get(struct roc_nix *roc_nix, bool inb_inl_dev);
bool __roc_api roc_nix_inl_inb_rx_inject_enable(struct roc_nix *roc_nix, bool inl_dev_sa);
uint32_t __roc_api roc_nix_inl_inb_spi_range(struct roc_nix *roc_nix,
bool inl_dev_sa, uint32_t *min,
diff --git a/drivers/common/cnxk/roc_platform_base_symbols.c b/drivers/common/cnxk/roc_platform_base_symbols.c
index 79dd18fbd7..2c73efd877 100644
--- a/drivers/common/cnxk/roc_platform_base_symbols.c
+++ b/drivers/common/cnxk/roc_platform_base_symbols.c
@@ -228,6 +228,7 @@ RTE_EXPORT_INTERNAL_SYMBOL(roc_nix_tm_dump)
RTE_EXPORT_INTERNAL_SYMBOL(roc_nix_tm_sdp_prepare_tree)
RTE_EXPORT_INTERNAL_SYMBOL(roc_nix_dump)
RTE_EXPORT_INTERNAL_SYMBOL(roc_nix_inl_dev_dump)
+RTE_EXPORT_INTERNAL_SYMBOL(roc_nix_inl_inb_reass_profile_id_get)
RTE_EXPORT_INTERNAL_SYMBOL(roc_nix_inl_outb_cpt_lfs_dump)
RTE_EXPORT_INTERNAL_SYMBOL(roc_nix_sq_desc_dump)
RTE_EXPORT_INTERNAL_SYMBOL(roc_nix_fc_config_get)
diff --git a/drivers/net/cnxk/cn20k_ethdev.c b/drivers/net/cnxk/cn20k_ethdev.c
index 7e9e32f80b..fd153c3105 100644
--- a/drivers/net/cnxk/cn20k_ethdev.c
+++ b/drivers/net/cnxk/cn20k_ethdev.c
@@ -616,22 +616,17 @@ static int
cn20k_nix_reassembly_capability_get(struct rte_eth_dev *eth_dev,
struct rte_eth_ip_reassembly_params *reassembly_capa)
{
- struct cnxk_eth_dev *dev = cnxk_eth_pmd_priv(eth_dev);
- int rc = -ENOTSUP;
RTE_SET_USED(eth_dev);

if (!roc_feature_nix_has_reass())
return -ENOTSUP;

- if (dev->rx_offloads & RTE_ETH_RX_OFFLOAD_SECURITY) {
- reassembly_capa->timeout_ms = 60 * 1000;
- reassembly_capa->max_frags = 4;
- reassembly_capa->flags =
- RTE_ETH_DEV_REASSEMBLY_F_IPV4 | RTE_ETH_DEV_REASSEMBLY_F_IPV6;
- rc = 0;
- }
+ reassembly_capa->timeout_ms = 60 * 1000;
+ reassembly_capa->max_frags = 8;
+ reassembly_capa->flags =
+ RTE_ETH_DEV_REASSEMBLY_F_IPV4 | RTE_ETH_DEV_REASSEMBLY_F_IPV6;

- return rc;
+ return 0;
}

static int
@@ -649,7 +644,8 @@ cn20k_nix_reassembly_conf_set(struct rte_eth_dev *eth_dev,
{
struct cnxk_eth_dev *dev = cnxk_eth_pmd_priv(eth_dev);
struct roc_cpt_rxc_time_cfg rxc_time_cfg = {0};
- int rc = 0;
+ uint16_t nb_rxq = dev->nb_rxq;
+ int rc = 0, i;

if (!roc_feature_nix_has_reass())
return -ENOTSUP;
@@ -659,15 +655,69 @@ cn20k_nix_reassembly_conf_set(struct rte_eth_dev *eth_dev,
if (!dev->inb.nb_oop)
dev->rx_offload_flags &= ~NIX_RX_REAS_F;
dev->inb.reass_en = false;
+ if (dev->ip_reass_en) {
+ cnxk_nix_ip_reass_rule_clr(eth_dev);
+ dev->ip_reass_en = false;
+ }
return 0;
}

+ if (!(dev->rx_offloads & RTE_ETH_RX_OFFLOAD_SECURITY)) {
+ rc = cnxk_nix_inline_inbound_setup(dev);
+ if (rc) {
+ plt_err("Nix inline inbound setup failed rc=%d", rc);
+ goto done;
+ }
+ rc = cnxk_nix_inline_inbound_mode_setup(dev);
+ if (rc) {
+ plt_err("Nix inline inbound mode setup failed rc=%d", rc);
+ goto cleanup;
+ }
+
+ for (i = 0; i < nb_rxq; i++) {
+ struct roc_nix_rq *rq = &dev->rqs[i];
+ if (!rq) {
+ plt_err("Receive queue = %d not enabled ", i);
+ goto cleanup;
+ }
+ struct cn20k_eth_rxq *rxq = eth_dev->data->rx_queues[i];
+
+ roc_nix_inl_dev_xaq_realloc(rq->aura_handle);
+
+ rq->tag_mask = 0x0FF00000 | ((uint32_t)RTE_EVENT_TYPE_ETHDEV << 28);
+ rc = roc_nix_inl_dev_rq_get(rq, !!eth_dev->data->dev_started);
+ if (rc)
+ goto cleanup;
+ rxq->lmt_base = dev->nix.lmt_base;
+ rxq->sa_base = roc_nix_inl_inb_sa_base_get(&dev->nix, dev->inb.inl_dev);
+ rc = roc_npa_buf_type_update(rq->aura_handle,
+ ROC_NPA_BUF_TYPE_PACKET_IPSEC, 1);
+ if (rc)
+ goto cleanup;
+ }
+ }
rc = roc_nix_reassembly_configure(&rxc_time_cfg, conf->timeout_ms);
- if (!rc && dev->rx_offloads & RTE_ETH_RX_OFFLOAD_SECURITY) {
- dev->rx_offload_flags |= NIX_RX_REAS_F;
- dev->inb.reass_en = true;
+ if (rc) {
+ plt_err("Nix reassembly_configure failed rc=%d", rc);
+ goto cleanup;
}

+ dev->rx_offload_flags |= NIX_RX_REAS_F | NIX_RX_OFFLOAD_SECURITY_F;
+ dev->inb.reass_en = !!((dev->rx_offloads & RTE_ETH_RX_OFFLOAD_SECURITY));
+
+ if (!dev->ip_reass_en) {
+ rc = cnxk_nix_ip_reass_rule_set(eth_dev, 0);
+ if (rc) {
+ plt_err("Nix reassembly rule setup failed rc=%d", rc);
+ goto cleanup;
+ }
+ }
+ return 0;
+cleanup:
+ dev->inb.reass_en = false;
+ if (!(dev->rx_offloads & RTE_ETH_RX_OFFLOAD_SECURITY))
+ rc |= cnxk_nix_inl_inb_fini(dev);
+done:
return rc;
}

diff --git a/drivers/net/cnxk/cn20k_rx.h b/drivers/net/cnxk/cn20k_rx.h
index 83c222c53c..d6c217cdf5 100644
--- a/drivers/net/cnxk/cn20k_rx.h
+++ b/drivers/net/cnxk/cn20k_rx.h
@@ -258,7 +258,8 @@ nix_sec_meta_to_mbuf_sc(uint64_t cq_w5, uint64_t cpth, const uint64_t sa_base,
*rte_security_dynfield(mbuf) = (uint64_t)inb_priv->userdata;
} else {
/* Update dynamic field with userdata */
- *rte_security_dynfield(mbuf) = (uint64_t)inb_priv->userdata;
+ if (flags & NIX_RX_REAS_F && inb_priv->userdata)
+ *rte_security_dynfield(mbuf) = (uint64_t)inb_priv->userdata;
}

*len = ((w3 >> 48) & 0xFFFF) + ((cq_w5 >> 16) & 0xFF) - (cq_w5 & 0xFF);
@@ -917,7 +918,8 @@ nix_sec_meta_to_mbuf(uintptr_t inb_sa, uintptr_t cpth, struct rte_mbuf **inner,
/* Get SPI from CPT_PARSE_S's cookie(already swapped) */
inb_priv = roc_nix_inl_ot_ipsec_inb_sa_sw_rsvd((void *)inb_sa);
/* Update dynamic field with userdata */
- *rte_security_dynfield(inner_m) = (uint64_t)inb_priv->userdata;
+ if (flags & NIX_RX_REAS_F && inb_priv->userdata)
+ *rte_security_dynfield(inner_m) = (uint64_t)inb_priv->userdata;
}

/* Clear and update original lower 16 bit of data offset */
diff --git a/drivers/net/cnxk/cnxk_ethdev.c b/drivers/net/cnxk/cnxk_ethdev.c
index ff78622b58..c979454f37 100644
--- a/drivers/net/cnxk/cnxk_ethdev.c
+++ b/drivers/net/cnxk/cnxk_ethdev.c
@@ -7,6 +7,11 @@
#include <eal_export.h>
#include <rte_eventdev.h>
#include <rte_pmd_cnxk.h>
+#include "roc_priv.h"
+
+#define REASS_PRIORITY 0
+#define CLS_LTYPE_OFFSET_START 7
+#define CLS_LFLAGS_LC_OFFSET (CLS_LTYPE_OFFSET_START + 4)

static const uint32_t cnxk_mac_modes[CGX_MODE_MAX + 1] = {
[CGX_MODE_SGMII] = RTE_ETH_LINK_SPEED_1G,
@@ -203,46 +208,160 @@ cnxk_nix_inb_mode_set(struct cnxk_eth_dev *dev, bool use_inl_dev)
return cnxk_nix_lookup_mem_sa_base_set(dev);
}

-static int
-nix_security_setup(struct cnxk_eth_dev *dev)
+int
+cnxk_nix_inline_inbound_mode_setup(struct cnxk_eth_dev *dev)
+{
+ int rc = 0;
+
+ /* By default pick using inline device for poll mode.
+ * Will be overridden when event mode rq's are setup.
+ */
+ cnxk_nix_inb_mode_set(dev, !dev->inb.no_inl_dev);
+
+ /* Allocate memory to be used as dptr for CPT ucode
+ * WRITE_SA op.
+ */
+ dev->inb.sa_dptr =
+ plt_zmalloc(ROC_NIX_INL_OT_IPSEC_INB_HW_SZ, 0);
+ if (!dev->inb.sa_dptr) {
+ plt_err("Couldn't allocate memory for SA dptr");
+ rc = -ENOMEM;
+ goto cleanup;
+ }
+ dev->inb.inl_dev_q = roc_nix_inl_dev_qptr_get(0);
+cleanup:
+ return rc;
+}
+
+static void
+cnxk_flow_ipfrag_set(struct roc_npc_flow *flow, struct roc_npc *npc)
+{
+ uint8_t lc_offset;
+ uint64_t mask;
+
+ lc_offset = rte_popcount64(npc->rx_parse_nibble & ((1ULL << CLS_LFLAGS_LC_OFFSET) - 1));
+
+ lc_offset *= 4;
+
+ mask = (~(0xffULL << lc_offset));
+ flow->mcam_data[0] &= mask;
+ flow->mcam_mask[0] &= mask;
+ flow->mcam_data[0] |= (0x02ULL << lc_offset);
+ flow->mcam_mask[0] |= (0x82ULL << lc_offset);
+}
+
+int
+cnxk_nix_ip_reass_rule_set(struct rte_eth_dev *eth_dev, uint32_t rq)
+{
+ struct cnxk_eth_dev *dev = cnxk_eth_pmd_priv(eth_dev);
+ struct nix_rx_action2_s *action2;
+ struct nix_rx_action_s *action;
+ struct roc_npc_flow mcam;
+ int prio = 0, rc = 0;
+ struct roc_npc *npc;
+ int resp_count = 0;
+ bool inl_dev;
+
+ npc = &dev->npc;
+ inl_dev = roc_nix_inb_is_with_inl_dev(&dev->nix);
+
+ prio = REASS_PRIORITY;
+ memset(&mcam, 0, sizeof(struct roc_npc_flow));
+
+ action = (struct nix_rx_action_s *)&mcam.npc_action;
+ action2 = (struct nix_rx_action2_s *)&mcam.npc_action2;
+
+ if (inl_dev) {
+ struct roc_nix_rq *inl_rq;
+
+ inl_rq = roc_nix_inl_dev_rq(&dev->nix);
+ if (!inl_rq) {
+ plt_err("Failed to get inline dev rq for %d", dev->nix.port_id);
+ goto mcam_alloc_failed;
+ }
+ action->pf_func = roc_idev_nix_inl_dev_pffunc_get();
+ action->index = inl_rq->qid;
+ } else {
+ action->pf_func = npc->pf_func;
+ action->index = rq;
+ }
+ action->op = NIX_RX_ACTIONOP_UCAST_CPT;
+
+ action2->inline_profile_id = roc_nix_inl_inb_reass_profile_id_get(npc->roc_nix, inl_dev);
+
+ rc = roc_npc_mcam_merge_base_steering_rule(npc, &mcam);
+ if (rc < 0)
+ goto mcam_alloc_failed;
+
+ /* Channel[11] should be 'b0 */
+ mcam.mcam_data[0] &= (~0xfffULL);
+ mcam.mcam_mask[0] &= (~0xfffULL);
+ mcam.mcam_data[0] |= (uint64_t)(npc->channel & 0x7ff);
+ mcam.mcam_mask[0] |= (BIT_ULL(12) - 1);
+ cnxk_flow_ipfrag_set(&mcam, npc);
+
+ mcam.priority = prio;
+ mcam.key_type = roc_npc_get_key_type(npc, &mcam);
+ rc = roc_npc_mcam_alloc_entry(npc, &mcam, NULL, prio, &resp_count);
+ if (rc || resp_count == 0)
+ goto mcam_alloc_failed;
+
+ mcam.enable = true;
+ rc = roc_npc_mcam_write_entry(npc, &mcam);
+ if (rc < 0)
+ goto mcam_write_failed;
+
+ dev->ip_reass_rule_id = mcam.mcam_id;
+ dev->ip_reass_en = true;
+ return 0;
+
+mcam_write_failed:
+ rc = roc_npc_mcam_free(npc, &mcam);
+ if (rc)
+ return rc;
+mcam_alloc_failed:
+ return -EIO;
+}
+
+int
+cnxk_nix_inline_inbound_setup(struct cnxk_eth_dev *dev)
{
struct roc_nix *nix = &dev->nix;
- int i, rc = 0;
+ int rc = 0;

- if (dev->rx_offloads & RTE_ETH_RX_OFFLOAD_SECURITY) {
- /* Setup minimum SA table when inline device is used */
- nix->ipsec_in_min_spi = dev->inb.no_inl_dev ? dev->inb.min_spi : 0;
- nix->ipsec_in_max_spi = dev->inb.no_inl_dev ? dev->inb.max_spi : 1;
+ /* Setup minimum SA table when inline device is used */
+ nix->ipsec_in_min_spi = dev->inb.no_inl_dev ? dev->inb.min_spi : 0;
+ nix->ipsec_in_max_spi = dev->inb.no_inl_dev ? dev->inb.max_spi : 1;

- /* Enable custom meta aura when multi-chan is used */
- if (nix->local_meta_aura_ena && roc_nix_inl_dev_is_multi_channel() &&
- !dev->inb.custom_meta_aura_dis)
- nix->custom_meta_aura_ena = true;
+ /* Enable custom meta aura when multi-chan is used */
+ if (nix->local_meta_aura_ena && roc_nix_inl_dev_is_multi_channel() &&
+ !dev->inb.custom_meta_aura_dis)
+ nix->custom_meta_aura_ena = true;

- /* Setup Inline Inbound */
- rc = roc_nix_inl_inb_init(nix);
- if (rc) {
- plt_err("Failed to initialize nix inline inb, rc=%d",
+ /* Setup Inline Inbound */
+ rc = roc_nix_inl_inb_init(nix);
+ if (rc) {
+ plt_err("Failed to initialize nix inline inb, rc=%d",
rc);
- return rc;
- }
+ return rc;
+ }

- /* By default pick using inline device for poll mode.
- * Will be overridden when event mode rq's are setup.
- */
- cnxk_nix_inb_mode_set(dev, !dev->inb.no_inl_dev);
+ return 0;
+}

- /* Allocate memory to be used as dptr for CPT ucode
- * WRITE_SA op.
- */
- dev->inb.sa_dptr =
- plt_zmalloc(ROC_NIX_INL_OT_IPSEC_INB_HW_SZ, 0);
- if (!dev->inb.sa_dptr) {
- plt_err("Couldn't allocate memory for SA dptr");
- rc = -ENOMEM;
+static int
+nix_security_setup(struct cnxk_eth_dev *dev)
+{
+ struct roc_nix *nix = &dev->nix;
+ int i, rc = 0;
+
+ if (dev->rx_offloads & RTE_ETH_RX_OFFLOAD_SECURITY) {
+ rc = cnxk_nix_inline_inbound_setup(dev);
+ if (rc)
+ return rc;
+ rc = cnxk_nix_inline_inbound_mode_setup(dev);
+ if (rc)
goto cleanup;
- }
- dev->inb.inl_dev_q = roc_nix_inl_dev_qptr_get(0);
}

if (dev->tx_offloads & RTE_ETH_TX_OFFLOAD_SECURITY ||
@@ -365,6 +484,22 @@ nix_meter_fini(struct cnxk_eth_dev *dev)
return 0;
}

+int
+cnxk_nix_inl_inb_fini(struct cnxk_eth_dev *dev)
+{
+ struct roc_nix *nix = &dev->nix;
+ int rc;
+
+ if (dev->inb.sa_dptr) {
+ plt_free(dev->inb.sa_dptr);
+ dev->inb.sa_dptr = NULL;
+ }
+ rc = roc_nix_inl_inb_fini(nix);
+ if (rc)
+ plt_err("Failed to cleanup nix inline inb, rc=%d", rc);
+ return rc;
+}
+
static int
nix_security_release(struct cnxk_eth_dev *dev)
{
@@ -374,7 +509,7 @@ nix_security_release(struct cnxk_eth_dev *dev)
int rc, ret = 0;

/* Cleanup Inline inbound */
- if (dev->rx_offloads & RTE_ETH_RX_OFFLOAD_SECURITY) {
+ if (dev->rx_offloads & RTE_ETH_RX_OFFLOAD_SECURITY || dev->ip_reass_en) {
/* Destroy inbound sessions */
tvar = NULL;
RTE_TAILQ_FOREACH_SAFE(eth_sec, &dev->inb.list, entry, tvar)
@@ -384,17 +519,14 @@ nix_security_release(struct cnxk_eth_dev *dev)
/* Clear lookup mem */
cnxk_nix_lookup_mem_sa_base_clear(dev);

- rc = roc_nix_inl_inb_fini(nix);
- if (rc)
- plt_err("Failed to cleanup nix inline inb, rc=%d", rc);
- ret |= rc;
+ ret |= cnxk_nix_inl_inb_fini(dev);

cnxk_nix_lookup_mem_metapool_clear(dev);
+ }

- if (dev->inb.sa_dptr) {
- plt_free(dev->inb.sa_dptr);
- dev->inb.sa_dptr = NULL;
- }
+ if (dev->ip_reass_en) {
+ cnxk_nix_ip_reass_rule_clr(eth_dev);
+ dev->ip_reass_en = false;
}

/* Cleanup Inline outbound */
@@ -946,7 +1078,7 @@ cnxk_nix_rx_queue_release(struct rte_eth_dev *eth_dev, uint16_t qid)
plt_nix_dbg("Releasing rxq %u", qid);

/* Release rq reference for inline dev if present */
- if (dev->rx_offloads & RTE_ETH_RX_OFFLOAD_SECURITY)
+ if (dev->rx_offloads & RTE_ETH_RX_OFFLOAD_SECURITY || dev->ip_reass_en)
roc_nix_inl_dev_rq_put(rq);

/* Cleanup ROC RQ */
@@ -1760,6 +1892,18 @@ cnxk_nix_rx_queue_stop(struct rte_eth_dev *eth_dev, uint16_t qid)
return rc;
}

+int
+cnxk_nix_ip_reass_rule_clr(struct rte_eth_dev *eth_dev)
+{
+ struct cnxk_eth_dev *dev = cnxk_eth_pmd_priv(eth_dev);
+ struct roc_npc *npc = &dev->npc;
+
+ if (dev->ip_reass_en)
+ return roc_npc_mcam_free_entry(npc, dev->ip_reass_rule_id);
+ else
+ return 0;
+}
+
static int
cnxk_nix_dev_stop(struct rte_eth_dev *eth_dev)
{
@@ -1842,7 +1986,7 @@ cnxk_nix_dev_start(struct rte_eth_dev *eth_dev)
return rc;
}

- if (dev->rx_offloads & RTE_ETH_RX_OFFLOAD_SECURITY) {
+ if ((dev->rx_offloads & RTE_ETH_RX_OFFLOAD_SECURITY) || dev->ip_reass_en) {
rc = roc_nix_inl_rq_ena_dis(&dev->nix, true);
if (rc) {
plt_err("Failed to enable Inline device RQ, rc=%d", rc);
@@ -2258,6 +2402,11 @@ cnxk_eth_dev_uninit(struct rte_eth_dev *eth_dev, bool reset)
/* Disable and free rte_meter entries */
nix_meter_fini(dev);

+ if (dev->ip_reass_en) {
+ cnxk_nix_ip_reass_rule_clr(eth_dev);
+ dev->ip_reass_en = false;
+ }
+
/* Disable and free rte_flow entries */
roc_npc_fini(&dev->npc);

diff --git a/drivers/net/cnxk/cnxk_ethdev.h b/drivers/net/cnxk/cnxk_ethdev.h
index 3d0a587406..1b63b02ad8 100644
--- a/drivers/net/cnxk/cnxk_ethdev.h
+++ b/drivers/net/cnxk/cnxk_ethdev.h
@@ -427,6 +427,8 @@ struct cnxk_eth_dev {
/* Reassembly dynfield/flag offsets */
int reass_dynfield_off;
int reass_dynflag_bit;
+ uint32_t ip_reass_rule_id;
+ bool ip_reass_en;

/* MCS device */
struct cnxk_mcs_dev *mcs_dev;
@@ -645,6 +647,10 @@ int cnxk_nix_tm_set_queue_rate_limit(struct rte_eth_dev *eth_dev,
int cnxk_nix_tm_mark_vlan_dei(struct rte_eth_dev *eth_dev, int mark_green,
int mark_yellow, int mark_red,
struct rte_tm_error *error);
+int cnxk_nix_ip_reass_rule_clr(struct rte_eth_dev *eth_dev);
+int cnxk_nix_ip_reass_rule_set(struct rte_eth_dev *eth_dev, uint32_t rq);
+int cnxk_nix_inl_inb_fini(struct cnxk_eth_dev *dev);
+
int cnxk_nix_tm_mark_ip_ecn(struct rte_eth_dev *eth_dev, int mark_green,
int mark_yellow, int mark_red,
struct rte_tm_error *error);
@@ -736,6 +742,8 @@ __rte_internal
int cnxk_nix_inb_mode_set(struct cnxk_eth_dev *dev, bool use_inl_dev);
__rte_internal
void cnxk_ethdev_rx_offload_cb_register(cnxk_ethdev_rx_offload_cb_t cb);
+int cnxk_nix_inline_inbound_setup(struct cnxk_eth_dev *dev);
+int cnxk_nix_inline_inbound_mode_setup(struct cnxk_eth_dev *dev);

struct cnxk_eth_sec_sess *cnxk_eth_sec_sess_get_by_sa_idx(struct cnxk_eth_dev *dev,
uint32_t sa_idx, bool inb);
--
2.34.1