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 18CFCA0560; Tue, 18 Oct 2022 05:24:54 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 9802042BBC; Tue, 18 Oct 2022 05:23:34 +0200 (CEST) Received: from NAM11-BN8-obe.outbound.protection.outlook.com (mail-bn8nam11on2100.outbound.protection.outlook.com [40.107.236.100]) by mails.dpdk.org (Postfix) with ESMTP id 1E8D342BA7 for ; Tue, 18 Oct 2022 05:23:32 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=GxT2sRf7tL1girpsiXQrfMxVIEmBhCoLsMyiwq0sNK54yOTX6rFTeNuAqWn5eq4Fnp90syEw7TYr1vxDyMzT3FAbYuLg8ozywT2FF1ed3FFyAvW355u4t31CCTdZgNiuainzGkd6SM/uc58DrskG+m5v514UM7rLxuB1WN7eWERNRvJdqZJ/r9LU6g1buBRCq+lMaAiwig8CpLyM/E7T+8dK3IR0L8BK89rPLD8cKpQNw9wVnZTIiJIeOeL4MGz3iA7Wv8OBFf5lFahCT6OyLeZxuasTcSBHLfPpK/oNsgk7+nN6VnW6lAANhYdf5EHMcc2vZUv/JxmlLJ0NByg+4g== 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=AAGwjt1/opRD2N8Ml9lvukRSR/NezUwYGIs7Xk4F4KU=; b=hi8VP50Gsym5pkCL6dYb5zEm652H7Tia3RmTqL9LyDMIOPOeeFxLk9uG7q9S1pWx9d1tDaT7thR1Z3xKg2lB7IoUrgUXMF2n6tbdl+dfMvp6nZsmWO0OGLANtkcIWhmEaMQOPMLxFCiwWRJ9DdhTS1lMOPVo6K0TTxwdg3XpmzeeejhUI2HTrVm0wMfe6TNeq+F8kMnxR17bPiEf+57PSteZClm7HhUfhasohvinXNNSiDugsBdRUuEJEMPLggPNG76qznNTW/2jgu+SWUzscGYrOM+k7FsUBRiCih4RXjfJR4Bf/O9IT35XX36VRCbQrAYugwHSJnRApbdZZAPp3g== 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=AAGwjt1/opRD2N8Ml9lvukRSR/NezUwYGIs7Xk4F4KU=; b=pVeREwvhCODTUXVWpKbcqW+artS1IRvkx0XW6TL9RipWZ3674lp9XdTW60JNnCvdyLMWaZ8mO4GkejNKABb3xhfVgYNrcn18ZoJGYaBD2iR/06zIx/mgmjNgelkgIjo1VPB4j2HJc/EShR4Tc4z1FOopJus9Ump4I0YFSe4KJAY= 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 BL3PR13MB5147.namprd13.prod.outlook.com (2603:10b6:208:33a::5) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5723.20; Tue, 18 Oct 2022 03:23:31 +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, 18 Oct 2022 03:23:30 +0000 From: Chaoyong He To: dev@dpdk.org Cc: oss-drivers@corigine.com, niklas.soderlund@corigine.com, Chaoyong He Subject: [PATCH 16/25] net/nfp: add the offload support of IPv6 GENEVE decap action Date: Tue, 18 Oct 2022 11:22:30 +0800 Message-Id: <1666063359-34283-17-git-send-email-chaoyong.he@corigine.com> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1666063359-34283-1-git-send-email-chaoyong.he@corigine.com> References: <1666063359-34283-1-git-send-email-chaoyong.he@corigine.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-ClientProxiedBy: SG2PR01CA0184.apcprd01.prod.exchangelabs.com (2603:1096:4:189::9) To SJ0PR13MB5545.namprd13.prod.outlook.com (2603:10b6:a03:424::5) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SJ0PR13MB5545:EE_|BL3PR13MB5147:EE_ X-MS-Office365-Filtering-Correlation-Id: 8fbb2139-8f57-4f5f-7d23-08dab0b82159 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: SWvJXsFjcHMRnTuU+vEIYXo3rRXxG2wqTNN4zOm0ugClwf1ahZ1Wb74uq5K/xFEw6Jaj3v7RpPUOXkuFa3Jmif6+9pbCQm1wSa3Ci0JvVzxAwEtaYAF48bPSKs7ofmqQipXr+34oL4z6Lbn9cyYSnXCsIKehYnh/h+gNF5KV03FDvoQKqwR7VvgEaa2ta/Ne+MULr6MdKYoqvlfTmGTiBU0kx1n+M/6Mk5DY6m4kfxYscVyfc5uggR2ww5L1fxoqwEWw/ACv43cmmU1EKmpTW9P6UXmBJU8LZbRkvDn5qHMJo/EBDmnTG0gIil3npwRliW52q7Ix0TyZ8UB54AM/DAwYx/uXAI4BR9k65c/f7VlKGqofWfX+rQO+eGNKiFH9/1poVcDlIVc49ca5NeaoI8b0D4JqFv9H6x0OcilmLSwqEG/zNN1dPDW1pdrnB29nFJNxIK8iIy7QpKZa4pRBQAo8wMdkeIsp+FoOMNgpjR+9fJXfNMT9w53gkMvJ13ybEKRyru+pC906I8mQQAmZkbhH30xHOYOIWgta9enS9P+RmMkukB1P+KioPiKd8zfSR90sP+Q/5JiZu2HGYz7D2nICRTT3t07mXltNmsmFRqJOnWdLovwpx64ConcFRfA1Iq8V4i+h6YL0z+Hn9chqlnNqyXlHVlYE2jHt4IEMUn62ceE5qOsYe3r4Y9HkCFMm2VcP86Eocso1SU7zfUnnHpykJuFI8JWMa5x440buihW/BgQidfdg1Q/Vv8dplfXL9PwKrqZtck7PJMq+5yCbkw== 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)(136003)(366004)(346002)(39840400004)(396003)(376002)(451199015)(36756003)(4326008)(66946007)(6916009)(316002)(5660300002)(66476007)(66556008)(38100700002)(38350700002)(86362001)(107886003)(6486002)(478600001)(26005)(6512007)(6506007)(52116002)(41300700001)(8936002)(2906002)(44832011)(8676002)(83380400001)(186003)(66574015)(2616005); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?RW1VdWQ2QVhXRmN4d2ptMXVjRkI5ZEN6TThwZ09sU0psSERhUHQvM3RUMFFF?= =?utf-8?B?cjhOU2U5Q2Y4ZWJpQjBtYkJLVzUrdmhiQUNvN0l0VnZScGJucWtZVm1kSzNv?= =?utf-8?B?Vm5UNkhvbk5Fa25idE9ySmlGL3pxOUZPL3VFREgvTFNCa0t4c3NNRkthNG0z?= =?utf-8?B?ZlVKRmJjWkozVmROa2ZydVl1YjV0TWs3K0FzRXE1QlIrQnlId2lLN1VRaU01?= =?utf-8?B?dE84enQ0Kzh4dWI4NVhNd1dDN09aY2cxM3I5cDBnenNzNmJmbTBpbndmY3Jk?= =?ut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G40bGYrMzhTSUs0SXp5VzZ1ZHo4RExyQVlkY1ZyRXZBQnkyQmVX?= =?utf-8?B?d0IwV1lPNjdBaTZJRjkzVTljNFhDUEs5OE5SdVE4eXFOaCs5NVhVbkxGN2pa?= =?utf-8?B?SEE9PQ==?= X-OriginatorOrg: corigine.com X-MS-Exchange-CrossTenant-Network-Message-Id: 8fbb2139-8f57-4f5f-7d23-08dab0b82159 X-MS-Exchange-CrossTenant-AuthSource: SJ0PR13MB5545.namprd13.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 18 Oct 2022 03:23:30.9298 (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: Fhfma6toguU1MjJGaTICBv+tX0QSE+Yk2igZ48qlg3yWdeJeaXqX1S3HxC++Tb3YHO+78o3mJ20PwveZgML2F1n3jzQT+/yjlUkx4IR6ykI= X-MS-Exchange-Transport-CrossTenantHeadersStamped: BL3PR13MB5147 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 for IPv6 GENEVE tunnel. Signed-off-by: Chaoyong He Reviewed-by: Niklas Söderlund --- doc/guides/rel_notes/release_22_11.rst | 2 +- drivers/net/nfp/nfp_flow.c | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/doc/guides/rel_notes/release_22_11.rst b/doc/guides/rel_notes/release_22_11.rst index 92a0d64..4adad3c 100644 --- a/doc/guides/rel_notes/release_22_11.rst +++ b/doc/guides/rel_notes/release_22_11.rst @@ -185,7 +185,7 @@ New Features * Set the TTL * Set the DSCP of IPv4 and IPv6 * Encap and decap of VXLAN tunnel - * Encap of GENEVE tunnel + * Encap and decap of GENEVE tunnel * **Updated NXP dpaa2 driver.** diff --git a/drivers/net/nfp/nfp_flow.c b/drivers/net/nfp/nfp_flow.c index a8287a1..f42cf77 100644 --- a/drivers/net/nfp/nfp_flow.c +++ b/drivers/net/nfp/nfp_flow.c @@ -1482,6 +1482,8 @@ struct nfp_pre_tun_entry { tun6 = (struct nfp_flower_ipv6_udp_tun *)*mbuf_off; tun6->tun_id = rte_cpu_to_be_32((geneve->vni[0] << 16) | (geneve->vni[1] << 8) | (geneve->vni[2])); + if (!is_mask) + ret = nfp_tun_add_ipv6_off(app_fw_flower, tun6->ipv6.ipv6_dst); } else { tun4 = (struct nfp_flower_ipv4_udp_tun *)*mbuf_off; tun4->tun_id = rte_cpu_to_be_32((geneve->vni[0] << 16) | -- 1.8.3.1