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 3AB57A0540; Mon, 22 Aug 2022 16:38:36 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id ADCBB427EB; Mon, 22 Aug 2022 16:38:31 +0200 (CEST) Received: from mx0b-0016f401.pphosted.com (mx0b-0016f401.pphosted.com [67.231.156.173]) by mails.dpdk.org (Postfix) with ESMTP id 20765427EA for ; Mon, 22 Aug 2022 16:38:30 +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 27MAFnS3010463; Mon, 22 Aug 2022 07:38:27 -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=i8qpmXTcDUOSboSxk+8YPW3w5Pd4zxwMOlwjanJdp61g3sOZTIiBl1jYG9i2j9u5PT8K KO0Mb2m2ZPD0Kq5+QWy7nptJB1/+pW4sO4a8F5XROV8wkX5vGX3KjWMftFBIwNyb93Wr nGWqsdlDR8EeeNrjty8T8Fov9p6bnAvsUX045G4EzVPLY92TkplQwS8VtfnIo0GkdsTH OiC5bNo3Wp4rgrots5QgdSuxJpbg7MWRjavALaQRQ9Es+80S6r4CMFWKCNXQPhqD9rHV J3ac9IesWBhMnjb+Zofl3YALDXbGmlqRVx9cWOtkDKBCQtIH7Skkd4VrZOHx2xFmTiAZ dA== Received: from dc5-exch02.marvell.com ([199.233.59.182]) by mx0b-0016f401.pphosted.com (PPS) with ESMTPS id 3j2y4jxy3m-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT); Mon, 22 Aug 2022 07:38:27 -0700 Received: from DC5-EXCH01.marvell.com (10.69.176.38) by DC5-EXCH02.marvell.com (10.69.176.39) with Microsoft SMTP Server (TLS) id 15.0.1497.18; Mon, 22 Aug 2022 07:38:25 -0700 Received: from maili.marvell.com (10.69.176.80) by DC5-EXCH01.marvell.com (10.69.176.38) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Mon, 22 Aug 2022 07:38:25 -0700 Received: from hyd1588t430.marvell.com (unknown [10.29.52.204]) by maili.marvell.com (Postfix) with ESMTP id 0A62A3F704B; Mon, 22 Aug 2022 07:38:22 -0700 (PDT) From: Nithin Dabilpuram To: Nithin Dabilpuram , Kiran Kumar K , Sunil Kumar Kori , Satha Rao CC: , , , Subject: [PATCH v3 3/5] net/cnxk: remove L2 header update for outbound inline pkts Date: Mon, 22 Aug 2022 20:08:10 +0530 Message-ID: <20220822143812.30010-3-ndabilpuram@marvell.com> X-Mailer: git-send-email 2.8.4 In-Reply-To: <20220822143812.30010-1-ndabilpuram@marvell.com> References: <20220707072921.13448-1-ndabilpuram@marvell.com> <20220822143812.30010-1-ndabilpuram@marvell.com> MIME-Version: 1.0 Content-Type: text/plain X-Proofpoint-GUID: 7QXwkA8uzhAP4wA3EaoP0TNSfYrNk5l7 X-Proofpoint-ORIG-GUID: 7QXwkA8uzhAP4wA3EaoP0TNSfYrNk5l7 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.205,Aquarius:18.0.895,Hydra:6.0.517,FMLib:17.11.122.1 definitions=2022-08-22_08,2022-08-22_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