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 30C6BA0093; Fri, 22 Apr 2022 06:58:03 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 1CA21427F6; Fri, 22 Apr 2022 06:57:53 +0200 (CEST) Received: from EUR03-DBA-obe.outbound.protection.outlook.com (mail-dbaeur03on2075.outbound.protection.outlook.com [40.107.104.75]) by mails.dpdk.org (Postfix) with ESMTP id 86FAE40040 for ; Fri, 22 Apr 2022 06:57:50 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=WGAbOXhs2Z8ksVK96heOP2mCZ126wPrBkAAchQew3a1U1PvhzZt5rq/N3cTRBiQFM/Kb3BPPvUEZDreMWUGGWS9RHeQx/BP0Of1V1GRFr7KE+ibZt7lVav3X6SI3YwWnepKe/UQywMYZ7PnSSmAJtBkgmaf5gtnOO9eyWMJMRZS1Am2Lw4pflyL2/dnLZ8MDDIBt20QpWwEMvv4/YLEpg2YyavivazRoeC9PCJ+7E0EM0Ww0RWTz0zP6lcnMemRKhL3Ry2TPbbpKvRKadIzitarliw+kuG3WDqT2011RS2xO6RQWvGfQI4DT4X+xbvgg6R1hpOOZoDwJreCmXdxMCg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=+c7NE/Kyq4kG36cO4+c5ls+Dfafr4l8fEq2NCoS9A2I=; b=F6YM2iDDjtOUqJwk5MSyAOn85ioY1GY/MdpbG+seyA+mPDgIFXHfE513OJRdbafjMCG9v9L9YXZpWobfkBOowBRpe3lPymYTn72tj4j41QDn651LaI+pS33jkQrd6o3LiQ6WyWqJcA4/CF14MW8shAa+UN7z1EzEEyZ/QxsJqmU1bDSyBe9DSebzcTpz3Wj0L73HFyiodDg+DyMegIPHHWqcOdlMlQd24QSl/4m5T4yJQAhrbCHefm6lwNrPSM2nffS9lwUfZkBl1zYwLQspWGe3Npon3A6pZ6g4Py89RmHfPPqYwGSSbvkSBCpBwY8h5ivZuOzNZjJ61F8N3ZwiWw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nxp.com; dmarc=pass action=none header.from=nxp.com; dkim=pass header.d=nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=+c7NE/Kyq4kG36cO4+c5ls+Dfafr4l8fEq2NCoS9A2I=; b=SF1rkgux/sU92hoKRXAdC/LIEdK8fK3uXKEUb1FpHKH7fvDdFJtwYa5JyaxLvlMy8CPWo5JYpI0XTgUGWIWnk2MVCRr4iRI5DCiN7T/Hq8JUMaubyaFJ2X90spuqoeTGfv88TQZpon6OQbfKL/qnDTewx5ePI+vSmwuCqBNYmBw= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nxp.com; Received: from AS8PR04MB8198.eurprd04.prod.outlook.com (2603:10a6:20b:3b0::14) by HE1PR04MB3049.eurprd04.prod.outlook.com (2603:10a6:7:18::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5186.15; Fri, 22 Apr 2022 04:57:49 +0000 Received: from AS8PR04MB8198.eurprd04.prod.outlook.com ([fe80::8cf1:93b:c340:3be2]) by AS8PR04MB8198.eurprd04.prod.outlook.com ([fe80::8cf1:93b:c340:3be2%7]) with mapi id 15.20.5186.015; Fri, 22 Apr 2022 04:57:49 +0000 From: Gagandeep Singh To: dev@dpdk.org Cc: Gagandeep Singh Subject: [PATCH 3/4] net/dpaa2: support ESP in packet type parsing Date: Fri, 22 Apr 2022 10:27:28 +0530 Message-Id: <20220422045729.3320637-3-g.singh@nxp.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220422045729.3320637-1-g.singh@nxp.com> References: <20220422045729.3320637-1-g.singh@nxp.com> Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: SI2P153CA0016.APCP153.PROD.OUTLOOK.COM (2603:1096:4:140::17) To AS8PR04MB8198.eurprd04.prod.outlook.com (2603:10a6:20b:3b0::14) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 24397788-46b3-4b2f-f075-08da241ca605 X-MS-TrafficTypeDiagnostic: HE1PR04MB3049:EE_ X-Microsoft-Antispam-PRVS: X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: p+Zuj2qrTTDV1I/0+sTKcLejvkyeRP+ECuOxNO2xwF1XD1vr6+zHOlEF+1TkWBa8Bp3xEdxFnhS9sqm641FLi+A3upEaubxc6EX+RoYF3P2eF33VsaS/nDztlKkixihTLOjXWsXWcNXfSYarsF/fO/78cDYc8pPgJ5/QaWw+HnuKJxPx86WuvR4teS2VSE9DKXKMnCXB6T14/OChg8G+R5U2GDgBpT8PlMRUiLTC/d9y+vu+S6w1fVXzCzfJ8J+Y625tjMsba24Up3OAX2ObGFM0Nqwx2VA3ZU6EMhvTwlZSWDzO7iPD/Tq10GI5009dVHeC6FPileVnYk1hbyS5ECzk6kxUCMbXdDxF+G8oScUBCRvbE6P6NpkcDubPQovcy+iprDRK1R3l/YqbnibH1vCGh7SI3PKj8fIdcX8EYLLNgBGuiTEXyvRJpgSJTwhypB7eW5+OfcYG6mi3HwtppUZYeeETRgpw201hFRqZYeY+rSV+9YtjJBItE4zSlRFUcvEM3S581UJ0kO8enhp2+oKvtUQqxmcqAMKI/QUO8nw81zOEx8NYyvF030R0vGn6QTET7l7Z4bLQaGwVcqg+HFtc8fvsDu+LSpA+quS/QOLm80lpSqiCalmU9Q7rNOrtzc3SFbsIr2l/0iiLGB0DocWqapsSGTvsFIhwd/Ctse5AoCAcI1fIelNNX54qpSBGY8bIkhyh1nezw+niqW77nA== X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:AS8PR04MB8198.eurprd04.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230001)(4636009)(366004)(6916009)(1076003)(26005)(6512007)(186003)(6506007)(2616005)(55236004)(36756003)(508600001)(6486002)(5660300002)(8936002)(86362001)(8676002)(4326008)(2906002)(316002)(66946007)(66476007)(66556008)(52116002)(6666004)(38350700002)(38100700002); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?XcJMPstDbEjIq+ku4D0Bemyw+CgbSLU8h7A91DGYMYoYtooEjyjbaP7jgCUs?= =?us-ascii?Q?aI0I1e0NCPrLMYHQg/AEaRvXe5nVPun1egx+y9+rLWbkTuJ8JvHagAGAvlRV?= =?us-ascii?Q?UUZl2pIb+uKu3Q9gBF4RACnXEP5QW44YC0EmzS+jFLKKJcPaN8vjjh8H7/ge?= =?us-ascii?Q?MPtX4PN4IOJeuGovLH6TQw5qL7aoEe78vh8X732l7/Sjys5wyEshdAz7rw9E?= =?us-ascii?Q?Tu2PvL2df1JLuvZB2+sqtVTCHLQABwK/w+3IyeYCBJUCvCuB1Ade6r2oG/Jk?= =?us-ascii?Q?8OTj8Uhk2seAClqHEW11xjnEDoCe5SYquzA1Hvi2DK3j9L/sfTohyM99sszi?= =?us-ascii?Q?pm+z08hDYWMplAsOQDznUKeBzvQr7jTW94E533P1CV/DynFC++S4aoLIhGNz?= =?us-ascii?Q?YX7M0qH5gw1JFbyB9lQQYpWUcbywp1+lJPGl1A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RqKJMXDU5dDbcT0K04qWSxHbCbbCZdyyHug+lsG17CGKmvBDsr1?= =?us-ascii?Q?WGzm81bVjagRnjIH8hy273Tag40M8hxk9M0cBQDM0T0zR55W/D5UV/Mu9a/t?= =?us-ascii?Q?WnPjT6eGdXWiOecVz1XqE00eh97uNjjH/ngvwaa1e2CqaJxj3yf6tUve6Tfd?= =?us-ascii?Q?GnLiV1BvRGNQJaqs81tEfo+1B+pwasWgqo8fpM1diUP/cfBWeCNfDj2Rr3CF?= =?us-ascii?Q?kgV51R/rjAsFJpiS3QcSdG+zN5JHYDMvYyTW9u/RU2cxIMa6IZj6W/sFrQNx?= =?us-ascii?Q?yjW7p9xsSDF0PQQGJYv4pkGYHWHxbWS3kS3nPQFCGKNg9ybIV2mbeSS3GXjy?= =?us-ascii?Q?TZ/+vJ2eEzCcYsmgnEq1qaify9uRJmxFVrYvuVQEPYk8b/xmUoeTNfL47bYf?= =?us-ascii?Q?xAEEhuKK4Q=3D=3D?= X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 24397788-46b3-4b2f-f075-08da241ca605 X-MS-Exchange-CrossTenant-AuthSource: AS8PR04MB8198.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 22 Apr 2022 04:57:49.3655 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: cQV+8buwX6NXlNXibRLlpCAb5WOEpjpbzCDXI2uWza1XZDdaBHXBpL0vtZTmcxbr X-MS-Exchange-Transport-CrossTenantHeadersStamped: HE1PR04MB3049 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 This patch supports ESP packet type in packet parsing. Signed-off-by: Gagandeep Singh --- drivers/net/dpaa2/dpaa2_rxtx.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/drivers/net/dpaa2/dpaa2_rxtx.c b/drivers/net/dpaa2/dpaa2_rxtx.c index d536352895..5ebce2b4f4 100644 --- a/drivers/net/dpaa2/dpaa2_rxtx.c +++ b/drivers/net/dpaa2/dpaa2_rxtx.c @@ -179,6 +179,9 @@ dpaa2_dev_rx_parse_slow(struct rte_mbuf *mbuf, if (BIT_ISSET_AT_POS(annotation->word4, L3_IP_1_OPT_PRESENT | L3_IP_N_OPT_PRESENT)) pkt_type |= RTE_PTYPE_L3_IPV4_EXT; + if (BIT_ISSET_AT_POS(annotation->word4, L3_PROTO_IPSEC_ESP_PRESENT | + L3_PROTO_ESP_PRESENT)) + pkt_type |= RTE_PTYPE_TUNNEL_ESP; } else if (BIT_ISSET_AT_POS(annotation->word4, L3_IPV6_1_PRESENT | L3_IPV6_N_PRESENT)) { @@ -186,6 +189,9 @@ dpaa2_dev_rx_parse_slow(struct rte_mbuf *mbuf, if (BIT_ISSET_AT_POS(annotation->word4, L3_IP_1_OPT_PRESENT | L3_IP_N_OPT_PRESENT)) pkt_type |= RTE_PTYPE_L3_IPV6_EXT; + if (BIT_ISSET_AT_POS(annotation->word4, L3_PROTO_IPSEC_ESP_PRESENT | + L3_PROTO_ESP_PRESENT)) + pkt_type |= RTE_PTYPE_TUNNEL_ESP; } else { goto parse_done; } -- 2.25.1