Avoid NIX_RX_OFFLOAD_SECURITY_F fast path flag for
custom_inb_sa config.

Fixes: 7eaa499dd0c2 ("net/cnxk: support CN20K inline IPsec session")
Cc: [email protected]

Signed-off-by: Rahul Bhansali <[email protected]>
---
Changes in v2: Updated commit message.

 drivers/net/cnxk/cn20k_ethdev.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/net/cnxk/cn20k_ethdev.c b/drivers/net/cnxk/cn20k_ethdev.c
index a7ef1dd386..20be35c0e0 100644
--- a/drivers/net/cnxk/cn20k_ethdev.c
+++ b/drivers/net/cnxk/cn20k_ethdev.c
@@ -35,7 +35,7 @@ nix_rx_offload_flags(struct rte_eth_dev *eth_dev)
        if (!dev->ptype_disable)
                flags |= NIX_RX_OFFLOAD_PTYPE_F;

-       if (dev->rx_offloads & RTE_ETH_RX_OFFLOAD_SECURITY)
+       if (dev->rx_offloads & RTE_ETH_RX_OFFLOAD_SECURITY && 
!dev->nix.custom_inb_sa)
                flags |= NIX_RX_OFFLOAD_SECURITY_F;

        return flags;
--
2.34.1

Reply via email to