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 77F18A0032; Sat, 22 Oct 2022 10:27:35 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 0B74142BCF; Sat, 22 Oct 2022 10:25:48 +0200 (CEST) Received: from NAM02-DM3-obe.outbound.protection.outlook.com (mail-dm3nam02on2139.outbound.protection.outlook.com [40.107.95.139]) by mails.dpdk.org (Postfix) with ESMTP id C782C42BBB for ; Sat, 22 Oct 2022 10:25:40 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=e0hcPFujtxIfPLXBNo+dPm5M0fHUb8LvwW7N4Fy/eGrt70SHiFeogpf0mNsf+puxTDBwv8CrKqckSofuM6KnRzpeoVNXHXgW6hDtzf/yuq3GLvrltdDUBlGxSZfDiOBT/4UBTLaw9c7NttIV2a2eo9AjqNkcEtxujvourpQIP5P1ywO2DAhf/U1ZT9yCHNyDOEHb1ELLeTEne4SmV4lvTF4dPGJ+0JTIXw0UFn8ADlasaR3tb9xOOj+lFzcb5kpJ1zOJ9XTc87xRp/nTc/fQIv253mXA0aqmvAglTyNFj76c8azyD/HJPzgPm5EYmooIsqTiYeA6ZykavtYWKZQAxw== 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=YJko2Gg/r873WKtqc7pq9o54YkWOt2o4y6zD+tDwFYg=; b=nVrsMBHk9lAUMkts0UHrch8PRPxHlqXE8rECWE7NW0rP/15v7kx4C6oK6h3C16qv1pwJD3vd+H9RoN62/SLxpZgL4pDery0GHkQZgW5lROPMcRFhm21UIebWrwsgGAnVS8clfSf9pyf3LDgkcgknoqjxW7kDiOPEy378eUbdt0EbgfV2ub9xLjwHmlDu02HjbpdEPTXDnUEU0/9VB7VAPMwrFQBHXqfKhuN5gym+Dc9pUWjv4ENGXiSIjeLtWX6PqOmKIOcyiv3e2D/R5wY/v5dLU4A7Qie0HS5u58ADG5EeltzNqgI6ESGxSh87AHMdMbwUAmEqYXt2rDR8qwyiYg== 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=YJko2Gg/r873WKtqc7pq9o54YkWOt2o4y6zD+tDwFYg=; b=toRZFQEYBwG7uXNVV2MeeYSfrxJoHDWOHPCJVcAA1pYNV4EuX70gF5wNYsO2Gt+xlZrxY9JyLk2ay/7Hg5QHraD34HDKzLkQ8A7/S/8vsaFYp4wF+U7Qd7umWhSr9IMSNZPBDf5KAjEM1oWg6Nh+rHSUTCQ5ekjsAoLPAE8BJoI= 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 CH2PR13MB3848.namprd13.prod.outlook.com (2603:10b6:610:9d::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5723.20; Sat, 22 Oct 2022 08:25:39 +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; Sat, 22 Oct 2022 08:25:39 +0000 From: Chaoyong He To: dev@dpdk.org Cc: oss-drivers@corigine.com, niklas.soderlund@corigine.com, Chaoyong He Subject: [PATCH v2 24/25] net/nfp: support IPv6 NVGRE decap flow action Date: Sat, 22 Oct 2022 16:24:28 +0800 Message-Id: <1666427069-10553-25-git-send-email-chaoyong.he@corigine.com> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1666427069-10553-1-git-send-email-chaoyong.he@corigine.com> References: <1666063359-34283-1-git-send-email-chaoyong.he@corigine.com> <1666427069-10553-1-git-send-email-chaoyong.he@corigine.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-ClientProxiedBy: SG2PR02CA0056.apcprd02.prod.outlook.com (2603:1096:4:54::20) To SJ0PR13MB5545.namprd13.prod.outlook.com (2603:10b6:a03:424::5) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SJ0PR13MB5545:EE_|CH2PR13MB3848:EE_ X-MS-Office365-Filtering-Correlation-Id: b7ba264a-9c5d-4e3d-f482-08dab4070076 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: F3V2pg9mYhGxeb885jYiYASJafCHK0w3wNnHVNi+Onx2O1KlVuQs2XtPIo20zC28erP3Nt0gzQwfAwNZ8zGMeVlQdeerZ2GF4C6O5Z3X7/pQvs2XpEMzaJgsciGBccS9O+u9jH3UlIHH+LMT1chCTRNMuv63PFDgvAD5BeCP10kgLOAwEhJGCeh3ha/qgHVF0mnmra0rZn5nvmtnFX0Ybcqg6EfjrTiTSWKM1nxrb4WLyrQmqC47nCiMCsek5XOeCs30pKj7uijEQv5mOD+64wBEKUEGUKejoVr5rrHwbIzXMRWIL8Y9C8XxwOBeTOVjt5z+IWdU/cblEODn15JlGDcImTQfHqhYY3IuzAcmwYFf3iC4WFDsMeGzs9JPHpTaZ8/QGqf7v/e9BZhZVqURX5uhAXegeCzLddPLqxBfa/2sHgF7ZTn4vfELZqpHOumbp3zIliOD+NFdSvSWWfq2ncEr3zhc5QEqe1CqNk3g2JcuiU/dMw2orjrCWZ3+ScrEuZes7NmrOzVSoPlZyB+yScQOZanSh0s/QW6o6aaULCB+BX0Cneu6qJqPzNAdlYp+maPKqzM7VFEjnE0LszxUA0nC7uVFJQd5Gt7acScFxatUzufOvgxrIPFzkArsI7lENFo3nSUipA9IHzRvIz52/E4EqvJhIWbi4+qPYxSEwQPkvXp7i1I6FOp1bgj498tWoagMaGoGqq9OxUM9FJlsN1iLYHaeUtXtwiS+QoUXBEx59w5Ft1dfRd0uN5N97ci1VunPI6yjDIVx7LOb/TC+Gg== 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)(396003)(39830400003)(346002)(376002)(451199015)(4326008)(107886003)(36756003)(38100700002)(66946007)(66556008)(316002)(6512007)(52116002)(66476007)(8676002)(44832011)(4744005)(6666004)(6506007)(38350700002)(5660300002)(8936002)(6916009)(2616005)(478600001)(186003)(41300700001)(26005)(6486002)(86362001)(2906002); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?WGJZUDhTd25GTEd4WTIwQlE0SEVrclYxMFdaRHJmYXNWcTlEVEZxeU9yT01B?= =?utf-8?B?TW4ycnd6YzBpRDFuK0tDbDZSWTFPTzE3MjhQaVY5eWJ3bDdKS2VFVm9iUXho?= =?utf-8?B?azF1WmV4WWgxbEJDVCtJUlkzRE5Wb0xsaDhHM1BiRHVCWFNidlpzUUI5ajFo?= =?utf-8?B?Nkk3dzEvL2IxcXBUOWpuUmFGN1ZmUXdvQnNOaVA3eFZMWWhrU3BiakFURnc4?= =?utf-8?B?bUhtMVFBTUVpelhCYVFZNXZxRk5hUzkvO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2TUdpd1ZoUmdwL0ltUWdRSHI5TlNwaC9hVFB6Y3p4Vzh1dzF3?= =?utf-8?B?TVVXUVM2QTBBcEtQc3FNMFI2YTFhTGVrcktwaEVCNXgzcWFQUkZlLzdzalNt?= =?utf-8?B?bVE9PQ==?= X-OriginatorOrg: corigine.com X-MS-Exchange-CrossTenant-Network-Message-Id: b7ba264a-9c5d-4e3d-f482-08dab4070076 X-MS-Exchange-CrossTenant-AuthSource: SJ0PR13MB5545.namprd13.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 22 Oct 2022 08:25:39.4568 (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: RhnCLH6SPs5qdvNcrmQnjGXMU/yBgS85PKHuOKsXDdtkOqEka/g6LRN5Iapd+PgjydD6h8W72Dx65OtI8cotR5fsU7DhvQa28F+OAkzE/kU= X-MS-Exchange-Transport-CrossTenantHeadersStamped: CH2PR13MB3848 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 c577278..4c6cfe4 100644 --- a/drivers/net/nfp/nfp_flow.c +++ b/drivers/net/nfp/nfp_flow.c @@ -1643,6 +1643,8 @@ struct nfp_pre_tun_entry { 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; -- 1.8.3.1