Remove L2 header update for outbound inline packets as
application is already taking care of the same.

Signed-off-by: Nithin Dabilpuram <ndabilpu...@marvell.com>
---
 drivers/net/cnxk/cn10k_tx.h | 17 -----------------
 1 file changed, 17 deletions(-)

diff --git a/drivers/net/cnxk/cn10k_tx.h b/drivers/net/cnxk/cn10k_tx.h
index ea13866..4bd47ef 100644
--- a/drivers/net/cnxk/cn10k_tx.h
+++ b/drivers/net/cnxk/cn10k_tx.h
@@ -362,15 +362,6 @@ cn10k_nix_prep_sec_vec(struct rte_mbuf *m, uint64x2_t 
*cmd0, uint64x2_t *cmd1,
 
        dptr += l2_len;
 
-       if (sess_priv.mode == ROC_IE_SA_MODE_TUNNEL) {
-               if (sess_priv.outer_ip_ver == ROC_IE_SA_IP_VERSION_4)
-                       *((uint16_t *)(dptr - 2)) =
-                               rte_cpu_to_be_16(RTE_ETHER_TYPE_IPV4);
-               else
-                       *((uint16_t *)(dptr - 2)) =
-                               rte_cpu_to_be_16(RTE_ETHER_TYPE_IPV6);
-       }
-
        ucode_cmd[1] = dptr;
        ucode_cmd[2] = dptr;
 
@@ -490,14 +481,6 @@ cn10k_nix_prep_sec(struct rte_mbuf *m, uint64_t *cmd, 
uintptr_t *nixtx_addr,
 
        dptr += l2_len;
 
-       if (sess_priv.mode == ROC_IE_SA_MODE_TUNNEL) {
-               if (sess_priv.outer_ip_ver == ROC_IE_SA_IP_VERSION_4)
-                       *((uint16_t *)(dptr - 2)) =
-                               rte_cpu_to_be_16(RTE_ETHER_TYPE_IPV4);
-               else
-                       *((uint16_t *)(dptr - 2)) =
-                               rte_cpu_to_be_16(RTE_ETHER_TYPE_IPV6);
-       }
        ucode_cmd[1] = dptr;
        ucode_cmd[2] = dptr;
 
-- 
2.8.4

Reply via email to