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 E6FB1454B8; Mon, 24 Jun 2024 03:58:49 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id E478A40A7D; Mon, 24 Jun 2024 03:58:01 +0200 (CEST) Received: from NAM04-MW2-obe.outbound.protection.outlook.com (mail-mw2nam04on2093.outbound.protection.outlook.com [40.107.101.93]) by mails.dpdk.org (Postfix) with ESMTP id 7968240A6C; Mon, 24 Jun 2024 03:58:00 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=KKHEO2AxS7pabpagp00HGOk5pn2ZazUpXE2jRwtDF8Em2ug8F7mcidpe+iWNphmFPtT2nF4zyvODem+1sOIlYzOmXECkd2YzkBaa78z8OKN3paWOFuqRKyHYXXYFGhDouPPsw5O95JbMZ74v8gmMUv2lsGSwbkSy09ULNxoiDAGhG6UCj8HWbmvK4lnYFj/26AsZ93XGt/1IeZ/N1JMplgNz8C2thki6huvaa0jIa8So+DPUIxnz5ufE2VKdrah9PPcmXpfGciMSuL9DrFpqZLgESAhQXbimWSw1NJOL55Z4VpsFqPlowxAJGxWp7rCCofv9umyglT2ah1xVlLDXaw== 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=dBwyW2Nxpfgb0mjttiyaZ11R5tzpXL+9idWx05IWNtY=; b=Xsc4i/MEaOnVFrUUnTNff146+VcmwoFantxI8pq7SLwCeRtKt9iPO0rvgtDM1YBzWji60bn9+HXQsOV/Jynx59Hn+ucrQLmbCK4cieOehzlu9BW5qnHwcNzpQJwX9cNdldTyY4bPot8Y/sb6ivL692qWRugWZNR5YjOmFxr8M+JqYuH09BbusGCpReZaC1Puepu4gAlWtBsV+0RO20wBxjaeouo2W9PYBKGmvK/rpyA7VJeZ8xkLwxLfWgWvOAaVa3UGhDJsKfHcKluElqmDy6zEBs6Tiy3uiA8Sf+FYOVDM5a9uDViSw8uRBh2dtjclX3gutKxZkx6AzHSFu7s1qw== 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=dBwyW2Nxpfgb0mjttiyaZ11R5tzpXL+9idWx05IWNtY=; b=p1oWatBek3rbllNJ0eVJCYGbPgSdfaAzm7mZKwJ8OSqRIODy4bbfltZ7Tc3FIRLB8Z2q6e1KqtaDa5qEjTndn8jT7Aq7ly+y/fec9c78XLtqPJd2EzzlxnvtSXR8r9LRjGk9Zg3LBtQuvs3T1zHIlxALRkAwdFvu+lssZqfWpMI= 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 SA1PR13MB5443.namprd13.prod.outlook.com (2603:10b6:806:232::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7677.37; Mon, 24 Jun 2024 01:57:58 +0000 Received: from SJ0PR13MB5545.namprd13.prod.outlook.com ([fe80::b900:5f05:766f:833]) by SJ0PR13MB5545.namprd13.prod.outlook.com ([fe80::b900:5f05:766f:833%4]) with mapi id 15.20.7698.024; Mon, 24 Jun 2024 01:57:58 +0000 From: Chaoyong He To: dev@dpdk.org Cc: oss-drivers@corigine.com, Long Wu , chaoyong.he@corigine.com, stable@dpdk.org, Peng Zhang Subject: [PATCH 07/17] net/nfp: fix flow rule match data problem Date: Mon, 24 Jun 2024 09:57:13 +0800 Message-Id: <20240624015723.3712898-8-chaoyong.he@corigine.com> X-Mailer: git-send-email 2.39.1 In-Reply-To: <20240624015723.3712898-1-chaoyong.he@corigine.com> References: <20240624015723.3712898-1-chaoyong.he@corigine.com> Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: SJ0PR13CA0070.namprd13.prod.outlook.com (2603:10b6:a03:2c4::15) To SJ0PR13MB5545.namprd13.prod.outlook.com (2603:10b6:a03:424::5) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SJ0PR13MB5545:EE_|SA1PR13MB5443:EE_ X-MS-Office365-Filtering-Correlation-Id: e6bb0a74-760d-4375-a7bf-08dc93f1121f X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; ARA:13230037|52116011|376011|1800799021|366013|38350700011; X-Microsoft-Antispam-Message-Info: =?us-ascii?Q?7yMsrcOU2p4DV62rj8vtkqjMh2KvmN9pO9nGs/k7x+VKxvtYERoS/c2aY/pc?= =?us-ascii?Q?SJMQCPtDoiIm0aylpWMiGQ2RdKk+55UKHnvhDtFhzdp0BamVDQK/joh3NhWz?= =?us-ascii?Q?wqecayuZjs2wTtNWqd8sZokNdnHOh3Ej0g7hGoKhsoPv+AA25ylVFtB3CMgu?= =?us-ascii?Q?u7SS2Xb2ub0tkB06CZ6At9S5CcR3jhDEQ/80BR3hh9HV2eVM5cSSikPg65q7?= =?us-ascii?Q?gctHNzil3zV6mlk23skKlPr3C8ppgFTchykM9BQ32BKHt3QlmjbzgR9P7DPN?= =?us-ascii?Q?aF25zEiQK+704EvrAhWbECLXCJxw4M7GQudxyVwQ77hwWItRjDqJCTsoWoxK?= =?us-ascii?Q?X3O6hZT87+yyBX/rNTn3Dn8ca5UJcs/jNB9u4J+hVxJi3lYkoWsx9ZyNeza7?= =?us-ascii?Q?6ben9PcR5UwPyomYE1DtAgoOKTMckK6ZEcT955jZr0xH6fWcVvXY3tAaImzg?= =?us-ascii?Q?d1jvwLE1GeTmjKnOO9nHWPG4PQJThxpEWcPrXmBGeLU3MudVHJPhp0ttN+qP?= =?us-ascii?Q?2gH+tIn8T8kftgRXFfW0nTktbaWO87el3zefqhim3YnX6I07ec2eWwkrh6Lq?= =?us-ascii?Q?KbaEZ19qRcbCJQVQo1xeH1zy83uGVdFGY28shqCr+1ExeerHec0cr883VZYZ?= =?us-ascii?Q?B12nk+TwPBiC+FAxWBa/mthKpGvTvkRLsCNjiLWjjadcx0rX3YPbrosCB2bI?= =?us-ascii?Q?Ruk9xg4nFEZjbZTIou80OUA/Cdb5STuKSFfDd/e1FXbGZT3BbvbZleDc8vMf?= =?us-ascii?Q?Tm0/p07yuVF3PCkmLG1pYqatuGpe3WGBBemEisDLeuJQZ1/em5/55ZV7whWv?= =?us-ascii?Q?A2brTykOHITjKdmhtYxkoMfwL50i0dgjoQtCR2hd3lhcgtd+10U0dSJ/6XEz?= =?us-ascii?Q?delZfWGbfzuZnL3um23g82O74PGy4RTTPBI+/ABSiktHIYQEI4J0C0r+vhZC?= =?us-ascii?Q?wibhPS2XmweEv1+WniOhEKNhK2hu+Y4jh6PxQRW8JZK6iSbJXs/WwKAC1GUw?= =?us-ascii?Q?UEDMdwvomCB5GXQtOehWHdVODhXQno0hVSNp+gWFIp5G+3YNBbPHFmOLGvfU?= =?us-ascii?Q?JhVZ9ersblUNpp4npgTDgGAZq9U5KcEyWoSm0IHUiUVFL+W+ItJQdvnRcgvG?= =?us-ascii?Q?+LdoRq4sWrPumvBuuuUvLxe3725IC+EJncmGRphTvyI86uWJSGGOnOunQD50?= =?us-ascii?Q?rAty7Apj9p7qwKQ2bqClr9B9Ns/z3c97rYrbaP5zDB2Am3JRDV0qvNNtyhjh?= =?us-ascii?Q?0jp9vu8y8xIgXVhg1NRfzxrERf1XXimW+FTeD9+gIUBOiDpBWtxImtkHjxx4?= =?us-ascii?Q?fTqq8YavE4XfDcwahsjlaGPcMdX0musFeCs0RRHFBa05ym2BKjlcST1iL2fL?= =?us-ascii?Q?Pcq3Hs1Pvo0W4vVumisVVe0dKlYxcRl1JCdrYKOpULwLZOhHSA=3D=3D?= X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:SJ0PR13MB5545.namprd13.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230037)(52116011)(376011)(1800799021)(366013)(38350700011); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?k/r34zCljWIyCuPvsOR5OibNukQYy1w0HkLuHc98bNWwLqasoXO9W0nfqPAq?= =?us-ascii?Q?dcipv8xFJ1tbQfK8VWp0QkEBpZxNX5b8Tatayl+r2cokXx1Ii/RdRaWue/YB?= =?us-ascii?Q?DFY/CWFyGZ4mOantp1YP0hgezGTtiK84d/LVt3+ooksAoQDil5Hzqwcfq1Xw?= =?us-ascii?Q?4fe8R01l+6Ep8thAFqNqCoxVJ4zYCWVmmGm+p2hmA6+3LV7USu0BNqfHGPvG?= =?us-ascii?Q?xpQ1bLfflSLjObjMV2lU2FOGc/gl8WtlJggqC2YKQwQg4R7Bd3TJAHgBaZKe?= =?us-ascii?Q?ep602Sci4apjRzRrvlOIP7qbrvGaKe0J0PQ9X3xZaHA3CtwIqk7hL2w0G/5a?= =?us-ascii?Q?NdYy+8v4uyfhc322S6yFU24Xg6BZvYU65KGHdCur8pfJGBgW7F4QxmiGBHRn?= =?us-ascii?Q?mAB52lgLWKXBhUdjaaLxpS1tyME8TfsT6elL3HJmNZNZplGiO5+pf2ewfrqp?= =?us-ascii?Q?mcFu9uX1dnSkyxvgYElgVKWuW42TpMBxFNor3QdEm6fPVnA4sQn3SwJg6l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2zxUveQD7OJQAk7uNdb5JCiL61X1V4?= =?us-ascii?Q?1snMYuc87AWWf0s59yUTt6J7WAcYhXVBSD68T6eyScpX+MygAfXq1dV6EKuD?= =?us-ascii?Q?90Ap1YDXrQAaP3MuhURJxSVMUfQKxb1bk4ab1sTMw0LjJRB/IrRyKqqOx+f4?= =?us-ascii?Q?H/8hdiiq+bQU/OephQY63/2XOCoi741hpGXqu+EcqHJrDcIPCTyZqGBit2fq?= =?us-ascii?Q?3Q=3D=3D?= X-OriginatorOrg: corigine.com X-MS-Exchange-CrossTenant-Network-Message-Id: e6bb0a74-760d-4375-a7bf-08dc93f1121f X-MS-Exchange-CrossTenant-AuthSource: SJ0PR13MB5545.namprd13.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 24 Jun 2024 01:57:58.2915 (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: dbpfQGcSR6le7yZp6+eIZlEFsprwbfRofa9BWEW23B0o8opEg/fLkgwroU6YrPoNgrlYhHfTiO0LatsQQvnGJwNUFunTqNvIc/Rj2Y565mA= X-MS-Exchange-Transport-CrossTenantHeadersStamped: SA1PR13MB5443 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 From: Long Wu The port and port mask field of 'struct nfp_net_cmsg_match_v4' are in the wrong position, and this will cause firmware not work as expected. Fixes: 42eabda06b0f ("net/nfp: support IPv4 flow item") Cc: chaoyong.he@corigine.com Cc: stable@dpdk.org Signed-off-by: Long Wu Reviewed-by: Chaoyong He Reviewed-by: Peng Zhang --- drivers/net/nfp/nfp_net_cmsg.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/net/nfp/nfp_net_cmsg.h b/drivers/net/nfp/nfp_net_cmsg.h index 4fab462cb9..b3d9bc33cf 100644 --- a/drivers/net/nfp/nfp_net_cmsg.h +++ b/drivers/net/nfp/nfp_net_cmsg.h @@ -52,10 +52,10 @@ struct nfp_net_cmsg_match_v4 { uint32_t src_ipv4_mask; uint32_t dst_ipv4; uint32_t dst_ipv4_mask; - uint16_t src_port; uint16_t src_port_mask; - uint16_t dst_port; + uint16_t src_port; uint16_t dst_port_mask; + uint16_t dst_port; }; /** -- 2.39.1