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 614F345B33 for ; Mon, 14 Oct 2024 04:44:34 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 9D61640280; Mon, 14 Oct 2024 04:44:31 +0200 (CEST) Received: from NAM02-DM3-obe.outbound.protection.outlook.com (mail-dm3nam02on2096.outbound.protection.outlook.com [40.107.95.96]) by mails.dpdk.org (Postfix) with ESMTP id B857A40151; Mon, 14 Oct 2024 04:44:27 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=r1z+vqcqnZROivU+PbnoT2svqiUbeRnTT01yEozylIsNbyjzkfru/WxdL3B7dW3Z4cUpOuZQeNyAKjnC6GtkRFnpjqzKalyO6jTiF+37nVGeWcpL/x4I6d1ResCri4a/j4PpxrETdFwGLDsdN/A6AUtD+eiEXOU4hN18OcHC28KTA9iKD64cDb5B+nJ/egkgH3lP2vkTYzmqK7uH8Xj3eY7vDjfZBy0xAJrpImByFIcx4z3Rs0Vnir1bpZiM05K3c3oU23uol9i0ya9eTjl7P/2zQ1bBnvyjIBOh7cLiy4bQsypoNTVX2+QVUhOpaaNGhv9mGikBbADjj1JVt7DK1g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; 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=39k080alOeVz1eDFxsJ8rhsPRuObm50tXMah2PV5KuA=; b=vvsCULIYOXVgfL0PtFdG6+//8UCrM/LCgcqtfttB0mPoTXiD+IGQK5HE/scQajosarpyzxLcjJBHZnjYK3HwZbw+7ZjBkt8M0GZHYlQrtz6zZL27gmIWbKwruWMWzXEuaLWzslB0EwGVeOtz9cNUH5wxwkUOmox4GnZDMOxerur+k6y/+t7u0GfHs1XfgtXRgVJTP5Mt8II5U3itrZ3jYoPQ9p3FiWevzsh4fxMbBN5S6c1mBycnGCycqao85ZyQrs0KCeHsNsyFw3KPGjVZTXMlcVaeWA0z+SQfPqdGlIHH797SdTMRRaas4h+4Rj+genZGSM8z+wsvHjef6W4Uag== 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=39k080alOeVz1eDFxsJ8rhsPRuObm50tXMah2PV5KuA=; b=unnpyLQBBx4gbYVpvxnKQ8jejiXMshpGmWx8MSuTMAFi79sbGOPBiNtalL28lzv+Bsw9w9PnzPogVnt2FAXnNKfGabCU6VAba4VR+mul9fJZsp3auC79iTIxWAOFkdiiMm1Sj097GM9qkFh7sKqt2zqaeQNmeAK+uxIEmGWUZRo= 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 PH7PR13MB6115.namprd13.prod.outlook.com (2603:10b6:510:2bc::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8048.24; Mon, 14 Oct 2024 02:44:26 +0000 Received: from SJ0PR13MB5545.namprd13.prod.outlook.com ([fe80::b900:5f05:766f:833]) by SJ0PR13MB5545.namprd13.prod.outlook.com ([fe80::b900:5f05:766f:833%5]) with mapi id 15.20.8048.020; Mon, 14 Oct 2024 02:44:26 +0000 From: Chaoyong He To: dev@dpdk.org Cc: oss-drivers@corigine.com, Shihong Wang , stable@dpdk.org, Long Wu , Peng Zhang , Chaoyong He Subject: [PATCH 2/4] net/nfp: do not set the IPv6 flag in transport mode Date: Mon, 14 Oct 2024 10:43:56 +0800 Message-Id: <20241014024358.3873420-3-chaoyong.he@corigine.com> X-Mailer: git-send-email 2.39.1 In-Reply-To: <20241014024358.3873420-1-chaoyong.he@corigine.com> References: <20241014024358.3873420-1-chaoyong.he@corigine.com> Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: SI2PR01CA0023.apcprd01.prod.exchangelabs.com (2603:1096:4:192::17) To SJ0PR13MB5545.namprd13.prod.outlook.com (2603:10b6:a03:424::5) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SJ0PR13MB5545:EE_|PH7PR13MB6115:EE_ X-MS-Office365-Filtering-Correlation-Id: 0aac4a2b-53eb-42c5-9c91-08dcebfa1e3b X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; ARA:13230040|1800799024|376014|52116014|366016|38350700014; X-Microsoft-Antispam-Message-Info: =?us-ascii?Q?bw9Zcdb369Z8DH5P6zk8m4Eun63swk8TWa9oG1P70jVnRTnsnlP1r5NR50xi?= =?us-ascii?Q?Fg+qMfZaSdDucr66kPxP2fXX/eWtFRvFVbQ/dhbMfvRmlwJJqTK+v0HRd+1W?= =?us-ascii?Q?PBaYIojPTD2owR2kvX7Rt2PSVEgBMXAzLiA1yLLVG+P5PpHWHSxFLK4Cq/T/?= =?us-ascii?Q?7zXBaSd7LXFY5R/4MXkGu+X+gzIUdJOcKJy8BtaNUxYKBjqsIPfl7irMM/vj?= =?us-ascii?Q?ntJJh+eUVJ66hCFEuOZHl/9RH93E6lhClQb3QLNqaprzfEnmKztogS+RhOfa?= =?us-ascii?Q?qCea/Fnuf4EHIbvIP62ZfmqouNt4NDWhacSbaA1LutV2vj2Rlf51Bi2AnvQm?= =?us-ascii?Q?BTk+TLSsw3oN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+Vhs7e?= =?us-ascii?Q?0JhZprjuaEMEuGajbgA1U6Wr6+6BN0ldMYxdaAJ0i3N9OtcjiWjLKU64Zncc?= =?us-ascii?Q?j4w/V+NRgMp/+qQX+KQg4lsnpHBMkW7Nen8H94QL2WW6MA=3D=3D?= 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:(13230040)(1800799024)(376014)(52116014)(366016)(38350700014); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?mNhpgRUgtC7f1uGZrLRNP2GW18PbNSGM4Khq5RWhszOHff6jQRMqozMxRjHr?= =?us-ascii?Q?s3PEK6/QgkE3bmATYaYxaOjnBNH6yweypn06pEmQ6TL7G8mzfMox2Kkr0GEF?= =?us-ascii?Q?t3W9j9v1rGZm0S7Gza1b5w6VMcg1oySlcTQqFVft178K8vdu/P75BaJfpSPy?= =?us-ascii?Q?BwRmac76fq7PzWl1kvK2Yy5DHM0MJ6Xsh2wWIPDa73+BrIn74nzi2vZWGDkk?= =?us-ascii?Q?Kf8MF6TuR6EV2td9PLAvgZNmRVS852per79H0p7yNalI9FYCrWNHvjmiMf+R?= =?us-ascii?Q?kEr+hegcD6+fAvpexW0Vn2EcYr+cWyHhvzHgg37iPAyIdd6TyVku8uFeblZW?= =?us-ascii?Q?QfOqvEDx3EzYVRNX2+v3nTnBgqMb/AyPeUlbJLGP/HBA338Rja9zUnvcYmDW?= =?us-ascii?Q?zli0YRAn7IodQZfD1HBoiDyyb17gn2Zs6JPW/idbclYbKfNBoS6YkvECFnJK?= =?us-ascii?Q?lZNYoOdmuau8B86V4UckA1Uddmhsjr83asakS0IXZ35eGw03GwkJbTqhurwh?= =?us-ascii?Q?qSnAOIc0rRBfzD2JzoNr/dIzsdazw+wcn5dv1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EW27QVAAgUIaG93YI3gMOE1rjB5rL27lbnYGd5PW105lLJEbk1y/RKP85B6?= =?us-ascii?Q?HAkLZjMHcQU3Gbd/HswQq7dgGnZH4egrGJjiMW/SnCw0ZcSMtnW3EscvubmL?= =?us-ascii?Q?PF6Z8Ge0CLo4g5kEbxzOTidkcCjO1k3g4IP8IIcL4LOQ0XmUCF9KnyBWIw87?= =?us-ascii?Q?jQ=3D=3D?= X-OriginatorOrg: corigine.com X-MS-Exchange-CrossTenant-Network-Message-Id: 0aac4a2b-53eb-42c5-9c91-08dcebfa1e3b X-MS-Exchange-CrossTenant-AuthSource: SJ0PR13MB5545.namprd13.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 14 Oct 2024 02:44:26.2965 (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: gvOb3NVP+QxJBVZoYz3HJT8t2knvdPCu9Z3nqskuvpM1DXdXbRSQ1ob/k2MPSljvsWkBohL+N0GAk14p+0b7a0MYIcOCs7OzEk494achKb0= X-MS-Exchange-Transport-CrossTenantHeadersStamped: PH7PR13MB6115 X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: patches for DPDK stable branches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: stable-bounces@dpdk.org From: Shihong Wang The transport only encapsulates the security protocol header, does not pay attention to the IP protocol type, and need not to set the IPv6 flag. Fixes: 3d21da66c06b ("net/nfp: create security session") Cc: stable@dpdk.org Signed-off-by: Shihong Wang Reviewed-by: Long Wu Reviewed-by: Peng Zhang Reviewed-by: Chaoyong He --- drivers/net/nfp/nfp_ipsec.c | 15 ++------------- 1 file changed, 2 insertions(+), 13 deletions(-) diff --git a/drivers/net/nfp/nfp_ipsec.c b/drivers/net/nfp/nfp_ipsec.c index 647bc2bb6d..89116af1b2 100644 --- a/drivers/net/nfp/nfp_ipsec.c +++ b/drivers/net/nfp/nfp_ipsec.c @@ -1056,20 +1056,9 @@ nfp_ipsec_msg_build(struct rte_eth_dev *eth_dev, break; case RTE_SECURITY_IPSEC_SA_MODE_TRANSPORT: - type = conf->ipsec.tunnel.type; cfg->ctrl_word.mode = NFP_IPSEC_MODE_TRANSPORT; - if (type == RTE_SECURITY_IPSEC_TUNNEL_IPV4) { - memset(&cfg->src_ip, 0, sizeof(cfg->src_ip)); - memset(&cfg->dst_ip, 0, sizeof(cfg->dst_ip)); - cfg->ipv6 = 0; - } else if (type == RTE_SECURITY_IPSEC_TUNNEL_IPV6) { - memset(&cfg->src_ip, 0, sizeof(cfg->src_ip)); - memset(&cfg->dst_ip, 0, sizeof(cfg->dst_ip)); - cfg->ipv6 = 1; - } else { - PMD_DRV_LOG(ERR, "Unsupported address family!"); - return -EINVAL; - } + memset(&cfg->src_ip, 0, sizeof(cfg->src_ip)); + memset(&cfg->dst_ip, 0, sizeof(cfg->dst_ip)); break; default: -- 2.39.1