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 688E7A0543; Tue, 25 Oct 2022 10:03:42 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 723F042C47; Tue, 25 Oct 2022 10:01:00 +0200 (CEST) Received: from NAM12-BN8-obe.outbound.protection.outlook.com (mail-bn8nam12on2124.outbound.protection.outlook.com [40.107.237.124]) by mails.dpdk.org (Postfix) with ESMTP id 5F25C42C5C for ; Tue, 25 Oct 2022 10:00:44 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=etf2X3q3UGe9Vwzm6iWLu+/ULB4jalFUUP8VAz3IdTB1rF56qKxQmFaBbVe0fbeP7wXD88FO00qq6x3sIjB0ITsj6fl018AV80O7tBtrJ4TlwsOn23W5zFFFmgdewqeJe0JcEV+3IbzTbVOAYE/nkZekS+odQilj8dcb4QSLXLyw15QfjwzRcbSWLlqanh+02jBUJ9PxdUQ4dgZ2rtYVF2DGkjoKXFp8PXplNXcCRBppBXSBTXGB/j8oe/walRmRdKuNu/d0bm6Z1tfRMzq+kHeZBMk2GW4A82QjBDqbggW3xsLR/TX7tx6L3QOleYkeLF+JaSxPV4EKu0dDcYpWLg== 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=Or+aZSG3DAVeeyFVpFZoTkF56vPQ+nUAG0LJ+IxBreI=; b=hMkZNsxeYA9TI/x9YbVhNzuy6bvTiGWKMEUGYlZq9M/H/s7swq1wVjEb9PUAEC71A8XPARTZpAbLrMfG/YHcMC06XwKU52b+eFMpREo9g+mB+50/G7LiaItF8MINwPt/6m6fZEZDO6OEnWkz1SErabH4Y/b4/g08zHCKZ+qgRnVZeMwSt+Dx0CgXgGLOtH2RsSxJgi/CFBqzgn4AwxACDtkxsyow1WbqWJz9oOuyr+qQp8htKSXLWuu3/VZ36mVuMSo4QBw3dQHAgtSQS1+q71pC9Y1xVB1osfBBpV6QCrjlLSyPPGu+Re6TUZYc+lFXUi6fxiZqISYuwTNxtFM7ug== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=corigine.com; dmarc=pass action=none header.from=corigine.com; dkim=pass header.d=corigine.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=corigine.onmicrosoft.com; s=selector2-corigine-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=Or+aZSG3DAVeeyFVpFZoTkF56vPQ+nUAG0LJ+IxBreI=; b=gAlPm4FnM72DkmZnv/xpnHbZuAIwiZIuErJzKfMqU8HhU5d/PYd+7GrO+F2hI4UUAA98LSZP7DQlJNgdwl7rgpafWHyj4sr4WACrz6p4MIdXOUQHYBdyoqJ0QOb2NoJEO4ISk0KxgEn8OcgN9OSNzheGGelpBhTgVna+atxNhpk= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=corigine.com; Received: from SJ0PR13MB5545.namprd13.prod.outlook.com (2603:10b6:a03:424::5) by BLAPR13MB4739.namprd13.prod.outlook.com (2603:10b6:208:306::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5746.25; Tue, 25 Oct 2022 08:00:43 +0000 Received: from SJ0PR13MB5545.namprd13.prod.outlook.com ([fe80::7c26:1a0b:2825:6f4b]) by SJ0PR13MB5545.namprd13.prod.outlook.com ([fe80::7c26:1a0b:2825:6f4b%4]) with mapi id 15.20.5723.014; Tue, 25 Oct 2022 08:00:43 +0000 From: Chaoyong He To: dev@dpdk.org Cc: oss-drivers@corigine.com, niklas.soderlund@corigine.com, Chaoyong He Subject: [PATCH v3 25/26] net/nfp: support IPv6 NVGRE decap flow action Date: Tue, 25 Oct 2022 15:59:17 +0800 Message-Id: <20221025075918.7778-26-chaoyong.he@corigine.com> X-Mailer: git-send-email 2.29.3 In-Reply-To: <20221025075918.7778-1-chaoyong.he@corigine.com> References: <1666427069-10553-1-git-send-email-chaoyong.he@corigine.com> <20221025075918.7778-1-chaoyong.he@corigine.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-ClientProxiedBy: SG2PR01CA0142.apcprd01.prod.exchangelabs.com (2603:1096:4:8f::22) To SJ0PR13MB5545.namprd13.prod.outlook.com (2603:10b6:a03:424::5) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SJ0PR13MB5545:EE_|BLAPR13MB4739:EE_ X-MS-Office365-Filtering-Correlation-Id: f1a8942c-e138-4c31-34f9-08dab65f03b6 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: kZCUf9bnRi1LnjP1/FCB0i9d24vy7JuC46jjf0njqlz5IuSOlsebYIy49raO7yDrppSTX3zKFaHxldZwcyPniUAIbK94fm02HXXDAjImR3JMcP7EUAHc5uCCn6axxAnFAz8q257AFhN+xjI+pkt+mJZEuYiOQU9SHmSMLXXSBkhtBpxq3/WTtm2uhF9DRzYX+xGPZUk87n9jMGtYGwH3AoASn5wSg9mTAkNLz7F2RL0iuODb4Eq5HXafOddWLX8NiqEbmvH0cNmLXxYaDKU1AFeM8zNoNZ8dRSxEBlbHFIvktPlFRJYMvG3ThlfJ1EBL2dNSCsBliBImu4Ie4HIpGs2Q0r11hPxSck+uSTxx48mGOckG1YFsnxLlSiDjuc6a/Mc+Lw+uqyT3xDwzQkGYjS5SYGPsXbLjPp/oaXeCvl7iHPGVpYwXbMoeKtxCo9JqGHeESZgi65Oq1SUuwzlts021h+GB+jH7WxUn3ji5PmHU+TmhWn9Gn+fOXTgWKwUuEW/uiEmvu76Bido60sk7uWNwk09LlbXFEOnoGVjAkaJ62WXa6zNwIo7ZIv/fGR6ZfvvUA5874VXIF3nfdrB+R2M0xrRGIGeDP5g8Rt95D+Zwr+P2ew6DbNsurKZdG3YnGotF6IlSD4lG8KKiOmfcdWyKROG37sg3y1YVKMI7/uj1AnUwDCL9zai4XofX/UFDN//C/omIeZ8RXZ/1CmKrX16xazBjqSWCj4MUQg1RNNf/XTuzbqfHpanDeHFo2iKNOOOP655IjWpnYl0CMpK3lg== X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:SJ0PR13MB5545.namprd13.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230022)(4636009)(376002)(366004)(396003)(136003)(39850400004)(346002)(451199015)(36756003)(38350700002)(86362001)(38100700002)(41300700001)(66946007)(1076003)(2906002)(6512007)(6666004)(26005)(186003)(6916009)(6506007)(52116002)(107886003)(478600001)(44832011)(66556008)(5660300002)(8936002)(2616005)(6486002)(8676002)(4744005)(316002)(66476007)(4326008); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?OXNCdm8yK013Y1VkY2RyNkl1SjJpMXdzaVl3MzNBcXBUSVlQNnNFM0FJZ0tP?= =?utf-8?B?T2dUbUxNSFR1cUwycmhrWEFHMndwcG1YK2V3dlkvcmlYM2JmeEwxYmtsdjZK?= =?utf-8?B?Zi9DOXQ1cDFHNGZiRFVqVTdlNnNJbGhOQkdnMXFsQ0RLTHF5cVVKYWhOQXJr?= =?utf-8?B?TGJNTWNhaDdPUnRxcGttZ1FOeWNwczhQYWQ0bnF2bmhJQVJRNTNuRnkyS2J5?= =?utf-8?B?aGxIdW1SeSt6NlpyWUJESEY3RnVVMFlRYl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B?elNpRmRXSmRvMWFEU1FxR09PWE9UaWJ1aXFVVTZ2YjAvMThUWEp6WEFCT0ln?= =?utf-8?B?bk41Y2lsS3kyRWZjUVBQdXlvQlRva3N2SlMrUEpIbmF2ZHBvYWNlNGF2VEZQ?= =?utf-8?B?NFE9PQ==?= X-OriginatorOrg: corigine.com X-MS-Exchange-CrossTenant-Network-Message-Id: f1a8942c-e138-4c31-34f9-08dab65f03b6 X-MS-Exchange-CrossTenant-AuthSource: SJ0PR13MB5545.namprd13.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 25 Oct 2022 08:00:43.0204 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: fe128f2c-073b-4c20-818e-7246a585940c X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: hKS09Wnh/augZsDhxHdinxUhDFN5MVDX7y79GaJ2nIGyd4tK7140BY9/Vt8iCVmHcqYAiKBZf7EgXbBGMLsbhi5SZyIF+XVSwNccl61d+OU= X-MS-Exchange-Transport-CrossTenantHeadersStamped: BLAPR13MB4739 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 Add the offload support of decap action of IPv6 NVGRE tunnel. Signed-off-by: Chaoyong He Reviewed-by: Niklas Söderlund --- drivers/net/nfp/nfp_flow.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/net/nfp/nfp_flow.c b/drivers/net/nfp/nfp_flow.c index d666446edf..93a9233b8b 100644 --- a/drivers/net/nfp/nfp_flow.c +++ b/drivers/net/nfp/nfp_flow.c @@ -1643,6 +1643,8 @@ nfp_flow_merge_gre_key(struct nfp_app_fw_flower *app_fw_flower, tun6 = (struct nfp_flower_ipv6_gre_tun *)*mbuf_off; tun6->tun_key = tun_key; tun6->tun_flags = rte_cpu_to_be_16(NFP_FL_GRE_FLAG_KEY); + if (!is_mask) + ret = nfp_tun_add_ipv6_off(app_fw_flower, tun6->ipv6.ipv6_dst); } else { tun4 = (struct nfp_flower_ipv4_gre_tun *)*mbuf_off; tun4->tun_key = tun_key; -- 2.29.3