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 139CB44060 for ; Wed, 12 Jun 2024 18:08:23 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id E258F402B4; Wed, 12 Jun 2024 18:08:22 +0200 (CEST) Received: from NAM11-DM6-obe.outbound.protection.outlook.com (mail-dm6nam11on2073.outbound.protection.outlook.com [40.107.223.73]) by mails.dpdk.org (Postfix) with ESMTP id 74F6140151 for ; Wed, 12 Jun 2024 18:08:21 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=cRROHOBTRlmBtKPWUSkCK+goY5Pa7q16wT+6gYDeOcqLLrmrSr1FszfqoDdytu8bmbDTvyrYztfClcC9RgDa2ns5xTMV8qFsfRPdUAAfQzL5LPMAQwnNxmw0UBYgcwQZzeREiliNHp8M/0ONg/R7apV8n5SMQIMPT7gFXu8WAllkL+GQhf6qHHTTrt66o5YhbB1FGxgM0t1qAMlmvBAjX49k8ELQFhgh+ukiNuyn9COKeqWMESD4HRhmip3pCz+7BNbs8hbPPbjvHqY+lHKM02JsKnr7ExVLumAHuTgpE6bN1P94wBAh0ClT15+rlM/khY/cqRdjU4zuYBoW35+qfA== 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=j5nPwbDwHDtkIBXe3pTBHCTWb7hJeBSxasPBsvZQ8HE=; b=hvP4VehOmHjlyL3qlQaoKAJKAg2zKKcxFBw2ZE2IQ0obQyxigpJC/5V3cU/gp5ecNPGM6ADby1NGm32k5vPE9ILdyt1PG61pa9YHPI1l4fVFMOPnODR72F/QMsaR2lz9FzhGz1rd+9oEwMvru2thhGqmPfWSDwMSN6nzt16a270X+Xa5O0IpEWqbaeBRJnae2jmzF3rfv1JuweGZbka4rmGO6Xu/GPonQOfuX4g4yeDFRb+fk7zNb/50rOl8plQX2WE4G3KzN3Hx5ft+I1Tu/PETixuI+B60cJ2O3zsCcSOtSL9aepmzCgM/auNMGu5R/86RepGF+ETbyLkX9IEhGA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nvidia.com; dmarc=pass action=none header.from=nvidia.com; dkim=pass header.d=nvidia.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Nvidia.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=j5nPwbDwHDtkIBXe3pTBHCTWb7hJeBSxasPBsvZQ8HE=; b=EZF0ZjiAPmZtKYB7/y5SfqCN+xZTbtMv5FPrQNuh/8xkZd6YZ/f+KyF8h4KgrS0xTkjvWchhBO8Ki7xNZlXKMmA4YqzH1IM7VrYmTdGWpNIlXSXES26q/GRBQRdtD/p+NLrkEiX+EnWL/IgQ1uhX3CT1oqaZgvdDF9AakSVHlhCeyxuPc2XX1jBZx46ShB51Pz1lNKkIPUisr6xnmEegwL2zd6zHyOsg/gt9vmvjpwEImqojS+M5MKq7vaDA4LDlMqwhDh1lPuUZ7PYkV6TuV9sCj4g4Il12fUCCPzmJv3hFdx35dB/Ik+jXGVck9PWXT0FTYdgIlmS1PnAPmnJpxw== Received: from PH0PR12MB8800.namprd12.prod.outlook.com (2603:10b6:510:26f::12) by BL3PR12MB6642.namprd12.prod.outlook.com (2603:10b6:208:38e::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7633.37; Wed, 12 Jun 2024 16:08:14 +0000 Received: from PH0PR12MB8800.namprd12.prod.outlook.com ([fe80::bdb6:e12f:18b6:2b77]) by PH0PR12MB8800.namprd12.prod.outlook.com ([fe80::bdb6:e12f:18b6:2b77%7]) with mapi id 15.20.7677.019; Wed, 12 Jun 2024 16:08:14 +0000 From: Dariusz Sosnowski To: Tao Li , "users@dpdk.org" CC: "tao.li06@sap.com" Subject: RE: Failed to install QUEUE action using async API on ConnectX-6 NIC Thread-Topic: Failed to install QUEUE action using async API on ConnectX-6 NIC Thread-Index: AQHavNXYpyAbIHzDf0S+B52tsDu4x7HEQ67Q Date: Wed, 12 Jun 2024 16:08:14 +0000 Message-ID: References: In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nvidia.com; x-ms-publictraffictype: Email x-ms-traffictypediagnostic: PH0PR12MB8800:EE_|BL3PR12MB6642:EE_ x-ms-office365-filtering-correlation-id: 82c31fe7-cfa6-4183-6ff4-08dc8af9dd81 x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; ARA:13230034|366010|376008|1800799018|38070700012; x-microsoft-antispam-message-info: =?us-ascii?Q?1A8kkO+i8nA5S8KjWq6yeyGrDpSjx7OOlN9t5Ef6zdhBHg2w8kDFB4/929jk?= =?us-ascii?Q?qmhLXfbHdv51JYqhan+m/e823k9+PxF9g+UqrVJO2UkXMdMrYb9MwIjpuWd2?= =?us-ascii?Q?t+tiBXlDDCidOmQE/WTEGITqIqDeC1o29UoUdtFR3IFePB1B3/WeCz5lFbRU?= =?us-ascii?Q?vNAHIzUTiDZImGQuakfiol+afMCe2R9zyvLhSmP9NUAeVQQqgFImDaaLPWrM?= =?us-ascii?Q?knBgrx4nYSD2vrjyKj1HzNiXSJmeva4qyUoHxoPfGKoZm4pRTcPAPzLWuEDQ?= =?us-ascii?Q?FZAHZOo2vFlCSpz4O8AawYI523S0GipSK9fHBgA/WmgtGsD2W2g3ohOgRt7Z?= =?us-ascii?Q?MiVlpiCocEzM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?= =?us-ascii?Q?FNkoxtLaTI2HVVV8c3u8P449186Zvcfmhfza4JLBqjEB/s22SnZhCgEmGDwV?= =?us-ascii?Q?rliyDPIVIbxhAkbcQSF9V/7ZqiArGR26g2SsJ+k6/qGElHx4lY0jVt2Bqg+S?= =?us-ascii?Q?066Z3jA=3D?= x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:PH0PR12MB8800.namprd12.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230034)(366010)(376008)(1800799018)(38070700012); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?Gb+3LwL4nyxh2RuEAiV5UBpcwlrV8a+eiPXVz5dMRpV6RuiUM+cKZ3HOqjb2?= =?us-ascii?Q?BYrQY2tU4IA5ODOqKDZVRtpfpVB7tBrXuOrWvZmHZ8ufniruZlMdSOR50MXU?= =?us-ascii?Q?0CAAS5BYHI2GPlHrrefqF80CBqhr+FDMbCQ9DTzY8ZA/rAr8sADH49SomtCG?= =?us-ascii?Q?H1O3sPRrzkB+zKoUbPh2toZO6ruZo2TurnWrFHn+4/gKDyqRMlNq1F0JL+kb?= =?us-ascii?Q?ZCstI8H8L2kCtdtVkPPrhkmURMNZe51c9SiniLXQTDYcS6RGSzZtYZU8i0Ao?= =?us-ascii?Q?uDqNUpEHz9BalqiBcRuPZY4ZLT39gp0bsOLclZY/xho7eH4rrQLXI+QX0PrX?= =?us-ascii?Q?sHGVo0EuJpuRGCm2ZJqh/XTCPahXafeP+iIH4XvnUuViumHAwQQkk447oZmY?= =?us-ascii?Q?7ZfU3Qw+Ubs9oBPe3MIquXakYpw61Ylou0UfRlgDJSEXP4GdsCrYP5oRg2IG?= =?us-ascii?Q?akcFFz+RbzKLVjT3PL/RJwOUZ3nWz+MN19MSfn2RsWeB0PBWFNn7+xMFnnrU?= =?us-ascii?Q?PjhMRb1K3UKlm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=?us-ascii?Q?2DevMQstFkvsHeRskiqA2aoHemglDz3qgL7gsWl7bC+tv6+sGS/kPEU7dYB2?= =?us-ascii?Q?3VOi9ayGmV9fB4bbsd9OWMT/7ns+dby9I8wA8Ihv14rjEqP/wcJL/0Lc+W3Z?= =?us-ascii?Q?zfxIMgrlUJ0SDjxHDi0NQRBuRyc5nhll3gztwbO3?= Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: PH0PR12MB8800.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 82c31fe7-cfa6-4183-6ff4-08dc8af9dd81 X-MS-Exchange-CrossTenant-originalarrivaltime: 12 Jun 2024 16:08:14.7179 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 43083d15-7273-40c1-b7db-39efd9ccc17a X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: vntiQIGrwQMzTXuRP00/4mRK5zCW0jBybT0F5y2+TuNb0QY7z8c3GN7TZ1H5mtDs76/g9IEy7JmLwz6WG4GOag== X-MS-Exchange-Transport-CrossTenantHeadersStamped: BL3PR12MB6642 X-BeenThere: users@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK usage discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: users-bounces@dpdk.org Hi, > From: Tao Li =20 > Sent: Wednesday, June 12, 2024 16:45 > To: users@dpdk.org > Cc: tao.li06@sap.com > Subject: Failed to install QUEUE action using async API on ConnectX-6 NIC >=20 > Hi all, >=20 > I am using the async API to install flow rules to perform the QUEUE actio= n to capture packets matching a certain pattern for processing by a DPDK ap= plication. The ConnectX-6 NIC is configured in multiport e-switch mode, as = outlined in the documentation (https://doc.dpdk.org/guides/nics/mlx5.html#m= ultiport-e-switch). Currently, I am facing an issue where I cannot create t= he corresponding templates for this purpose. The command to start test-pmd = and create pattern and action templates are as follows: >=20 > > sudo ./dpdk-testpmd -a 3b:00.0,dv_flow_en=3D2,representor=3Dpf0-1vf0 -- -= i --rxq=3D1 --txq=3D1 --flow-isolate-all > >=20 > > port stop all > flow configure 0 queues_number 1 queues_size 10 counters_number 0 aging_c= ounters_number 0 meters_number 0 flags 0 > flow configure 1 queues_number 1 queues_size 10 counters_number 0 aging_c= ounters_number 0 meters_number 0 flags 0 > flow configure 2 queues_number 1 queues_size 10 counters_number 0 aging_c= ounters_number 0 meters_number 0 flags 0 > flow configure 3 queues_number 1 queues_size 10 counters_number 0 aging_c= ounters_number 0 meters_number 0 flags 0 > port start all >=20 > flow pattern_template 0 create transfer relaxed no pattern_template_id 10= template represented_port ethdev_port_id is 0 / eth type is 0x86dd / end > flow actions_template 0 create ingress actions_template_id 10 template = queue / end mask queue index 0xffff / end > flow template_table 0 create group 0 priority 0 transfer wire_orig tabl= e_id 5 rules_number 8 pattern_template 10 actions_template 10 > flow queue 0 create 0 template_table 5 pattern_template 0 actions_templat= e 0 postpone no pattern represented_port ethdev_port_id is 0 / eth type is = 0x86dd / end actions queue index 0 / end > flow push 0 queue 0 > >=20 > The error encountered during the execution of the above test-pmd commands= is: >=20 > > mlx5_net: [mlx5dr_action_print_combo]: Invalid action_type sequence > mlx5_net: [mlx5dr_action_print_combo]: TIR > mlx5_net: [mlx5dr_matcher_check_and_process_at]: Invalid combination in a= ction template > mlx5_net: [mlx5dr_matcher_bind_at]: Invalid at 0 > >=20 > Upon closer inspection of the driver code in DPDK 23.11 (also the latest= DPDK main branch), it appears that the error is due to the fact that MLX5D= R_ACTION_TYP_TIR is not listed as a valid action in the MLX5DR_TABLE_TYPE_F= DB field. If the following patch is applied, the error is resolved, and the= DPDK application is able to capture matching packets: >=20 > > diff --git a/drivers/net/mlx5/hws/mlx5dr_action.c b/drivers/net/mlx5/hws/= mlx5dr_action.c > index 862ee3e332..c444ec761e 100644 > --- a/drivers/net/mlx5/hws/mlx5dr_action.c > +++ b/drivers/net/mlx5/hws/mlx5dr_action.c > @@ -85,6 +85,7 @@ static const uint32_t action_order_arr[MLX5DR_TABLE_TYP= E_MAX][MLX5DR_ACTION_TYP_ > BIT(MLX5DR_ACTION_TYP_VPORT) | > BIT(MLX5DR_ACTION_TYP_DROP) | > BIT(MLX5DR_ACTION_TYP_DEST_ROOT) | > + BIT(MLX5DR_ACTION_TYP_TIR) | > BIT(MLX5DR_ACTION_TYP_DEST_ARRAY), > BIT(MLX5DR_ACTION_TYP_LAST), > },=20 > > I would greatly appreciate it if anyone could provide insight into whethe= r this behavior is intentional or if it is a bug in the driver. Many thanks= in advance. The fact that it works with this code change is not an intended behavior an= d we do not support using QUEUE and RSS actions on transfer flow tables. Also, there's another issue with table and actions template attributes: - table is using transfer, - actions template is using ingress. Using them together is incorrect. In the upcoming DPDK release, we are adding additional validations which wo= uld guard against that. With your configuration, it is enough that you create an ingress flow table= on port 0, which will contain a flow rule matching IPv6 traffic and forwarding it to a= queue on port 0. By default, any traffic which is not explicitly dropped or forwarded in E-S= witch, will be handled by ingress flow rules of the port on which this pack= et was received. Since you're running with flow isolation enabled, this means that traffic w= ill go to kernel interface, unless you explicitly match it on ingress. >=20 > Best regards, > Tao Best regards, Dariusz Sosnowski