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 E1C0643FB4; Mon, 6 May 2024 13:46:00 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 8239D40A75; Mon, 6 May 2024 13:45:21 +0200 (CEST) Received: from NAM04-DM6-obe.outbound.protection.outlook.com (mail-dm6nam04on2078.outbound.protection.outlook.com [40.107.102.78]) by mails.dpdk.org (Postfix) with ESMTP id D796540A80 for ; Mon, 6 May 2024 13:45:18 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=RKjBxcQVId4LQYz+vlJ/b1ttVCc8VO4Bspb983AWB6GmnF7+YJMNsZDQSysvwZoMD9agQ9qIMItYOUWtB+sCUlrvjejeH0/qb6/dnSZOH8aHqlnO/rQwxK3HtAQXMfVkuLc9ElbPYhqOIgBCvXXfpt5OBM2kVsyyhgRsrD543cu5E6QokKlDCCI3efF41FOTrGgqvX8AuiLQipcQmC3ypC6C3PRG/HJvdld1t2ZOrYT3ft9DvEaba+ylZAbL6nev9bStqyMmdZidveMnvEzCkMVZcugNZCi08c6s/uEghgG1zbphntvdFoajat/PvFSTneemBTVi97jgJngyHMvO4Q== 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=l6ZBDlAFUIFFS+L/GCPkVhf35fx2Na82QiBLT+YCVu4=; b=FXfKUjJ0khq64U0Sx6YSiexSbQGDnT+hwMJpQQZmViD/lCyPqOV0jeCBy20UP+1Ui+qR1a/WcW2miulclNnF5OunO6Z/wFLXb8IgwkIBqi5gCFHyWXBDi5INp5jkXQ9NA3MM120XIotUyLxpHrR7f81uq3JQ4kLEiu4/rNTV4MNESpU6/JKGr2hSNBWwbLaHIXyVvPtPsyGOaXkkmmUviC2VRNEUKJgIG1poH3eF1KL3RXoNwTks08QchJzp6QCvFA49qWMZTbfWDGcp/u0FrlGm1A3uS5Wd/GalDuugmKkhHV0TQftnaqSNawTXKmVKS7u0hlQzQElrHdFgyFh92Q== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 216.228.118.232) smtp.rcpttodomain=monjalon.net smtp.mailfrom=nvidia.com; dmarc=pass (p=reject sp=reject pct=100) action=none header.from=nvidia.com; dkim=none (message not signed); arc=none (0) 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=l6ZBDlAFUIFFS+L/GCPkVhf35fx2Na82QiBLT+YCVu4=; b=BAofAzsyn5NuHLTKaixl3BSAg6NBXPVp3VnvAzfe7/2bRaAUhZG84jjwldGEyPsTp7wfMmLq+3Di7XHbciUOIZg1m8wYXCNsUfp2tq/2q6+eMLWZDU59WdFhltrDLhEhDBGtpU4PaThvrV62bOWGERnpVIAKLeB8H6Bj5CpiFgeLylkK06OagwAXyR68Od5oe5i8S65krinaHnUVDQgmwPHRGVY9EhYUfaKkxzevFYWYCFxlU13UPrT7FsIqQ3KgEnwDDjnVTVJ/5mRSU3cLw9TtLWreDlduBc7Ncx09FM955AokXa9qwfeDHunVNMBXRvSR6kWXFt4SY6q9PjDDLA== Received: from BL0PR01CA0030.prod.exchangelabs.com (2603:10b6:208:71::43) by SA1PR12MB7342.namprd12.prod.outlook.com (2603:10b6:806:2b3::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7544.42; Mon, 6 May 2024 11:45:16 +0000 Received: from BN3PEPF0000B370.namprd21.prod.outlook.com (2603:10b6:208:71:cafe::e7) by BL0PR01CA0030.outlook.office365.com (2603:10b6:208:71::43) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7544.42 via Frontend Transport; Mon, 6 May 2024 11:45:11 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 216.228.118.232) smtp.mailfrom=nvidia.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=nvidia.com; Received-SPF: Pass (protection.outlook.com: domain of nvidia.com designates 216.228.118.232 as permitted sender) receiver=protection.outlook.com; client-ip=216.228.118.232; helo=mail.nvidia.com; pr=C Received: from mail.nvidia.com (216.228.118.232) by BN3PEPF0000B370.mail.protection.outlook.com (10.167.243.167) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7519.0 via Frontend Transport; Mon, 6 May 2024 11:45:10 +0000 Received: from drhqmail203.nvidia.com (10.126.190.182) by mail.nvidia.com (10.127.129.5) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1544.4; Mon, 6 May 2024 04:45:01 -0700 Received: from drhqmail203.nvidia.com (10.126.190.182) by drhqmail203.nvidia.com (10.126.190.182) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1544.4; Mon, 6 May 2024 04:45:01 -0700 Received: from nvidia.com (10.127.8.12) by mail.nvidia.com (10.126.190.182) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1544.4 via Frontend Transport; Mon, 6 May 2024 04:44:58 -0700 From: Itamar Gozlan To: , , , , , , , Dariusz Sosnowski , Ori Kam , Matan Azrad CC: , Alex Vesker Subject: [v2 10/16] net/mlx5/hws: drop at attach number of actions Date: Mon, 6 May 2024 14:44:13 +0300 Message-ID: <20240506114419.966498-10-igozlan@nvidia.com> X-Mailer: git-send-email 2.39.3 In-Reply-To: <20240506114419.966498-1-igozlan@nvidia.com> References: <20240314114220.203241-1-igozlan@nvidia.com> <20240506114419.966498-1-igozlan@nvidia.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-NV-OnPremToCloud: ExternallySecured X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: BN3PEPF0000B370:EE_|SA1PR12MB7342:EE_ X-MS-Office365-Filtering-Correlation-Id: 8bdf443a-c813-4bc7-84db-08dc6dc1fc4d X-LD-Processed: 43083d15-7273-40c1-b7db-39efd9ccc17a,ExtAddr X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; ARA:13230031|1800799015|376005|36860700004|82310400017|921011; X-Microsoft-Antispam-Message-Info: =?us-ascii?Q?CVaY3wgkg4exK+nyFfbX4Exlz4WV2O4gc/ki4i3N4qmXk0Zm3GMVrqkZ63wa?= =?us-ascii?Q?3TWf+ZWs+GSrCYiCRPyYS3cG0WasJu6ZoxIjj2fO6p1XD78hR3nfZAU4kq4t?= =?us-ascii?Q?dOga1lM2jw+hE9yr1a4sZpn+p/NmXiGIT3ifJaDyoBKZuvo6bNkdGzTZ8acG?= =?us-ascii?Q?4OkeucOr3jlx7i25NrwMYuhlY+Zj4GCy25NbXlN5Z4Wrd6dy5heLBTb/56fX?= =?us-ascii?Q?5pgLryCGn7KCxvg85HT5FxsPOUdHPjA1aSwTPZo5ZK2h5y2ILBTX5yIGUB/R?= =?us-ascii?Q?hxXfx08pxRT4TX79rSB2KAnc6ZWgyvMq9HR0xP0QCgLCY0j/0cRxhKzUADpT?= =?us-ascii?Q?EyA1LoE6E6j4F+x/W9Edvw2ykX3YGk3FwyTYaWAG7RD6yZhOr/kbXYddBXog?= =?us-ascii?Q?zjA2Z+9T7gTHm6Wjrcsj4y3vpqRQPrFBmvQfSIw9O9H4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gDCkyqHY1Th9mHZbnmLGSF5BWTFN3Tku29Y9i8Frh2ln26?= =?us-ascii?Q?Jk2CPtYqPQAW4L9dg1oAGJpgiEtL?= X-Forefront-Antispam-Report: CIP:216.228.118.232; CTRY:US; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:mail.nvidia.com; PTR:dc7edge1.nvidia.com; CAT:NONE; SFS:(13230031)(1800799015)(376005)(36860700004)(82310400017)(921011); DIR:OUT; SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 06 May 2024 11:45:10.6947 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 8bdf443a-c813-4bc7-84db-08dc6dc1fc4d X-MS-Exchange-CrossTenant-Id: 43083d15-7273-40c1-b7db-39efd9ccc17a X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=43083d15-7273-40c1-b7db-39efd9ccc17a; Ip=[216.228.118.232]; Helo=[mail.nvidia.com] X-MS-Exchange-CrossTenant-AuthSource: BN3PEPF0000B370.namprd21.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: SA1PR12MB7342 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: Alex Vesker Requesting the user for number of action resources is not defined well enough, instead the user should provide an initial action template which should contain the future attached action templates. Signed-off-by: Alex Vesker Acked-by: Matan Azrad --- drivers/net/mlx5/hws/mlx5dr_matcher.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/drivers/net/mlx5/hws/mlx5dr_matcher.c b/drivers/net/mlx5/hws/mlx5dr_matcher.c index 1213e7f0ad..78d525e578 100644 --- a/drivers/net/mlx5/hws/mlx5dr_matcher.c +++ b/drivers/net/mlx5/hws/mlx5dr_matcher.c @@ -785,6 +785,13 @@ static int mlx5dr_matcher_bind_at(struct mlx5dr_matcher *matcher) if (matcher->flags & MLX5DR_MATCHER_FLAGS_COLLISION) return 0; + if (matcher->attr.max_num_of_at_attach && + mlx5dr_matcher_req_fw_wqe(matcher)) { + DR_LOG(ERR, "FW extended matcher doesn't support additional at"); + rte_errno = ENOTSUP; + return rte_errno; + } + for (i = 0; i < matcher->num_of_at; i++) { struct mlx5dr_action_template *at = &matcher->at[i]; -- 2.39.3