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 C027BA0032; Sat, 22 Oct 2022 10:26:46 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id C55AB42BAD; Sat, 22 Oct 2022 10:25:29 +0200 (CEST) Received: from NAM10-DM6-obe.outbound.protection.outlook.com (mail-dm6nam10on2115.outbound.protection.outlook.com [40.107.93.115]) by mails.dpdk.org (Postfix) with ESMTP id 21C9042686 for ; Sat, 22 Oct 2022 10:25:24 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=huPKTe+l1S36WdeBlrWsPjnT2QLhY9VEJTMwdLe2A+yWFpaFVrGqn1yyMPUtE+xisQhfkP7GzjTwseo9hNaz5KU7tu8m042c4/0xYer84i4JhNcpQB99rTWXn8OdYy6qi5f1GkbGcfrbStSrqiMBm82ME/56bIhgQTwfSuDK4JLAO5wxwHqLaBAwuXVsXbB05yXLp7ZstpOqXF0ZqyVHu8Bao4ZhP5UQRkHHwpTUK0/1AScG3vhNdUwJQeynnLqxSWlTkQ3pYocIZCNkmwdrtyedwjSwCxyZLUVg3gtR0aj8O2o4WCjDwbsRWjo54/UZmppa3q0DiZ+r1zqnsGSfCA== 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=T8ub/62Q1PMPL3uzSHMgtYp1lOxWHAwrlu7wRGaaEVg=; b=Rt9RH8RIUwwUh7/wtVE5CmFrMOiQM7U2yM8LmcnUZWn9kRNv3OnQ9Aqtp+IxQKGizvAJH0JiVPDpEgJXRjzTSnkETNtdxBpY/X5QTP8BFEs1kNKqQ1wNDFTiPwAJNqA38JJLIzd6KjO98aZxayMB8s7aOaxMyImFNjS4BRfDSxbkS7XwX5gDCXmL0Qr3Duym0WpqWVb4bllxna7etqaaB+IXRTTp2kdcvIPgDmSG2xYUkRZkC9ttgrFuJ+IwfzvBnLE25DDV/Oa2VMGJMHth12EVHDaBp8k/zcJHk5mAzyWJJ787yvNJQAOXeiXEaRW0dgysHqfrelO5oWpXJI75Bg== 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=T8ub/62Q1PMPL3uzSHMgtYp1lOxWHAwrlu7wRGaaEVg=; b=WCL659ieKWvngDw89GytgKRoyOW5cprjeEA7QYX/c2g009RooKf3N18nwJu6gE6T1p+ga9qgr7Yd1XIKTYda7/3jzzvE3EZo8r5JjpJM9/oxUU7/awQ6+l6jTozrPOJJdkp8j/6pXDJ+qJDhDfUBRoo08pZYQEpsJpElG5BVGA8= 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 PH7PR13MB5454.namprd13.prod.outlook.com (2603:10b6:510:130::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5746.8; Sat, 22 Oct 2022 08:25:20 +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:20 +0000 From: Chaoyong He To: dev@dpdk.org Cc: oss-drivers@corigine.com, niklas.soderlund@corigine.com, Chaoyong He Subject: [PATCH v2 16/25] net/nfp: support IPv6 GENEVE decap flow action Date: Sat, 22 Oct 2022 16:24:20 +0800 Message-Id: <1666427069-10553-17-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_|PH7PR13MB5454:EE_ X-MS-Office365-Filtering-Correlation-Id: c12ac3b3-70b0-4b20-4299-08dab406f514 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: rXGH72BNCqfje/p3Ge7FsQ4LFqXXOZGE4XdmSm5Ic3xaCvPp9STd/fhfkJouABQsn/BEQhWKzrhBQJ1aA/3aK+srfsbQ9jqqW7j0/AMYfD/Lndo7RjJvWi2cQ9URgcGOaN5/RPNocaTXQkU2N4bzsi9LNSGAUDxYIWSNixtWDSdPaESyuLpMZnuporoQbZZeSLPJbUF5eMir1iIbEWLoNoKrx0/SdHKXZQ7RbgC9ImWBzYpq4OuSufz7CnEVEsABjCUIXiGhyvh/IW7MlKdjuTfFdW6iKSx2EYO64fNRs9WBWgz1pmjzvMR/1AztuWJPdmyt0YFUgn5y0KBdh91viH63JpVLSsnP59klzVs0jNyNVd89No5TdESFRbKJC+f1aZoAELk3Gcc+CJgGlITwbSiOK7PkyRSoBSfTyKljThq1RCTBZnUvyV2C5IGIwenRqs07+Dn2GGhE2hCOBeBUHRgwF7FSyF2CirBX0BiIMVKb1IS3F0C4gP5EMAPS6VrfHr7yv27rw4bJ02GBPCN6y4cguevDnuAdia3pS7rLAyNoTkUrozPlPF2wXoBzsq956DG8WtzrZJz+iLLKJf5ZLU02CB/0SjPzz6V9GvGT5Z6sHmNFbTDgwhsKZt4SqPF0OXcuI3qCPIRzlC1bRS3gx6uRa2c4w9L7lhLOy4eH18iRNxWATknkbQoq9wRio6O4PciQP80yrlsVYykNdrhril1OdjC7sEIdM10oARi8ZL2FotJJd9O2mECNPSnnpeYEYkx6paFsnZAmEZY63oU2Ngx/WR+b/5MP6d8Wl4xCYWBQl8/LdmyOH//AEpU6wRU+ 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)(346002)(366004)(396003)(376002)(39840400004)(136003)(451199015)(186003)(6916009)(316002)(2616005)(4744005)(38350700002)(86362001)(44832011)(38100700002)(66556008)(5660300002)(41300700001)(107886003)(478600001)(6506007)(6486002)(8676002)(26005)(6512007)(8936002)(4326008)(2906002)(52116002)(66946007)(66476007)(36756003); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?bFZ0VU84eGI1M3hnV1Jhd3c4Z2djc3lqbFcvYVE4aC9qYVVvUjcrTzFTMlFQ?= =?utf-8?B?cCtiWTdrV3ZRd2pPdkVYbU9NT2FmK1BtL2Z0OWVZNGpqV0NpaG5zWExYeDU0?= =?utf-8?B?UXBvSVNqUWlHbVlhMDI3cm83bWgzZzBQQXNueGpoLzVuUzFQNk1mczFTNDJN?= =?utf-8?B?MkNXdDk3ME1PNDltdzd4UHhOTnlZaGVwOWNGWFo1bWZ0b3E5UlR4VmJtRjZI?= =?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aVJrdmxPNTBMUGxJZStp?= =?utf-8?B?RkdHalB2b2RmbWM2N0kwZFVyRldpNTJkRmZwWkNlS2dFZ2dGLzAyMExXQTNR?= =?utf-8?B?dFBKK1FuQlk0SDExbGpYUVNxbWl4WTJ3SEdrK0dRWEx3MVhPQ08rTTZsQktC?= =?utf-8?B?aFE9PQ==?= X-OriginatorOrg: corigine.com X-MS-Exchange-CrossTenant-Network-Message-Id: c12ac3b3-70b0-4b20-4299-08dab406f514 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:20.6519 (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: JGsy8IxJRs97gvjQ2LTDQsiqHWJBtQX6KRPl+WDr76/qSCDiGUU5UR4iIFmGuUwHjOnnRuW8wiYQ8HI6AGiiYMTtvyU7O114GzvoZpztCvs= X-MS-Exchange-Transport-CrossTenantHeadersStamped: PH7PR13MB5454 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 --- 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 223f2e7..c7daa14 100644 --- a/drivers/net/nfp/nfp_flow.c +++ b/drivers/net/nfp/nfp_flow.c @@ -1464,6 +1464,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