From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 59F83A0032; Wed, 17 Aug 2022 21:12:26 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 803DB41181; Wed, 17 Aug 2022 21:12:20 +0200 (CEST) Received: from mx0b-0016f401.pphosted.com (mx0b-0016f401.pphosted.com [67.231.156.173]) by mails.dpdk.org (Postfix) with ESMTP id 9DE6A4068E for ; Wed, 17 Aug 2022 21:12:18 +0200 (CEST) Received: from pps.filterd (m0045851.ppops.net [127.0.0.1]) by mx0b-0016f401.pphosted.com (8.17.1.5/8.17.1.5) with ESMTP id 27HGooHZ032224 for ; Wed, 17 Aug 2022 12:12:18 -0700 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=marvell.com; h=from : to : cc : subject : date : message-id : in-reply-to : references : mime-version : content-type; s=pfpt0220; bh=4vDrsBbmHZ7wY3uRyP+S5uTUv9qGv2icpuU7+elJDbQ=; b=UYKDQ3D94n67GAQ08MtDHOG11YNcO9nxnLLz8OMz6SMNN589CiKjw3v1zQie09Ba/fDw 3sNr5HkuRQYENyp8gQTAobgBASKVYrmuP9acysaIDKX8aloFFyyi/3RZTK12e0ygSTgo +ohSpGV8DT8R7eO8zzOUIBT0vGGL7uNgtAGlkf0Ndwpg3gqcK78PBRm+oPuwAn9uMhIs pnVNVdDiLyig3sslWRzsje4/VeonEaTdN6RWH0PKO9lO+Jy7Dh0d6hHN2LZXzpZJ+13d 8I5ywewpEIgG9PjYRa/LJDKxrXtALJcRJwOoDW+Lx+fK5UjwhBWH/1LWSnzDjUCxl4e/ zQ== Received: from dc5-exch01.marvell.com ([199.233.59.181]) by mx0b-0016f401.pphosted.com (PPS) with ESMTPS id 3j0v1q2n1d-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT) for ; Wed, 17 Aug 2022 12:12:18 -0700 Received: from DC5-EXCH02.marvell.com (10.69.176.39) by DC5-EXCH01.marvell.com (10.69.176.38) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Wed, 17 Aug 2022 12:12:16 -0700 Received: from maili.marvell.com (10.69.176.80) by DC5-EXCH02.marvell.com (10.69.176.39) with Microsoft SMTP Server id 15.0.1497.18 via Frontend Transport; Wed, 17 Aug 2022 12:12:16 -0700 Received: from hyd1588t430.marvell.com (unknown [10.29.52.204]) by maili.marvell.com (Postfix) with ESMTP id A83D53F7124; Wed, 17 Aug 2022 12:11:53 -0700 (PDT) From: Nithin Dabilpuram To: Nithin Dabilpuram , Kiran Kumar K , Sunil Kumar Kori , Satha Rao CC: , , Subject: [PATCH v2 3/5] net/cnxk: remove L2 header update for outbound inline pkts Date: Thu, 18 Aug 2022 00:41:44 +0530 Message-ID: <20220817191146.30085-3-ndabilpuram@marvell.com> X-Mailer: git-send-email 2.8.4 In-Reply-To: <20220817191146.30085-1-ndabilpuram@marvell.com> References: <20220707072921.13448-1-ndabilpuram@marvell.com> <20220817191146.30085-1-ndabilpuram@marvell.com> MIME-Version: 1.0 Content-Type: text/plain X-Proofpoint-ORIG-GUID: jjKAx7SO-WaaZlPxkaiiBbTMeyxohgF4 X-Proofpoint-GUID: jjKAx7SO-WaaZlPxkaiiBbTMeyxohgF4 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.205,Aquarius:18.0.883,Hydra:6.0.517,FMLib:17.11.122.1 definitions=2022-08-17_13,2022-08-16_02,2022-06-22_01 X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Remove L2 header update for outbound inline packets as application is already taking care of the same. Signed-off-by: Nithin Dabilpuram --- 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