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 A761743CA5; Thu, 14 Mar 2024 12:44:36 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 3234542EC2; Thu, 14 Mar 2024 12:43:41 +0100 (CET) Received: from NAM10-MW2-obe.outbound.protection.outlook.com (mail-mw2nam10on2066.outbound.protection.outlook.com [40.107.94.66]) by mails.dpdk.org (Postfix) with ESMTP id F096342EDE for ; Thu, 14 Mar 2024 12:43:39 +0100 (CET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=bWEED6d82g27TANZY3i5+FfQB8yk8kThCxq0L0vK59n9eCoql45JvLxZTufnLwGUfQ6Dru2PLGYo0E8OYUMF7lpVGtFM0K2SBllecgGXFnxqA1RHZleb4RndxsqB8tBPrUHYlghRfD1sPM420hO/zWzyV1yfW0YUsZhZmYU1wTBQQ1M3FG781juPr/+H0SWIhA/8ENpVvFYoNWT5uUx4yb2Doc9kRfEvuqjP7QhNI5ncbsceLR/JaD3tfL2cfINoupE6ppj/7VBb5FndZKu3JISJuuORLC+ZMDpDJYSYGltSJvrW/QVddxPl8kGnzkIZXcXlw77l+SqI07lNW5eydg== 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=mS7Z4ZCwr1q9XRgsjeztw5vsVD15m8lT1YLYAXC0Sz8Z+qCaoM1tOsna2Z3Wb9KuY5Fob+KqB5VPkJwkhLHFGpeCZ+B3EsHjdwYHQQrbUpCp+FYJnMuIJYedh58gDVoHQdvDsayWZn3PBbXquipj0i+xDxSyaQcgTwFCbh2gpYrUkLsMrG+NUFzDx6hMKgUZGREQGxYwYa+nM5QyQa7bJXs1W4RxHJuPmFwuntSOGdOfD2R+MSIooDb0SaK2lNoZvNr+wIsEzJChdo7gjQ1ah02eZi+hN0JFt6Xc4DLfJ8gd//w/ZaLoFmezmasM4S4/2+sUWSAAb+ZU3/EY4T6CXQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 216.228.117.161) 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=oMYQJHbeZwlJtgVS9E8/R1JP1vTO10Jdy4qx/qM1YGhrW1rtBKrtzZL+katFWTVGgaA7tkJtzyqtqi2gm+TlCURNu2LR2gwNnOtlthGeuf5nuPTQOQwj16Bl5qoqtH2/aqGMfXmq4koScw/2XKA9jrUXIj/nzXDO7X3CrfTwVjOt+GAGFhcMDoTyVJKIqt718mCtwugZ/1Q+IuYemvf21Y66PDKHVANX7SWqZ0N8Cu6niWIfpXiQMAXGdLew9KIoMrgmpApk8pRp7GWPcCJ4wMs6fFU9XIJ9cdw7yHDMyv+EpHI2Xe74ptGRu+LOtYZffiigSWi/cAv9KxrpmC54Hg== Received: from CY8PR19CA0002.namprd19.prod.outlook.com (2603:10b6:930:44::11) by PH8PR12MB6843.namprd12.prod.outlook.com (2603:10b6:510:1ca::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7386.19; Thu, 14 Mar 2024 11:43:37 +0000 Received: from CY4PEPF0000E9D8.namprd05.prod.outlook.com (2603:10b6:930:44:cafe::e6) by CY8PR19CA0002.outlook.office365.com (2603:10b6:930:44::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7362.36 via Frontend Transport; Thu, 14 Mar 2024 11:43:37 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 216.228.117.161) 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.117.161 as permitted sender) receiver=protection.outlook.com; client-ip=216.228.117.161; helo=mail.nvidia.com; pr=C Received: from mail.nvidia.com (216.228.117.161) by CY4PEPF0000E9D8.mail.protection.outlook.com (10.167.241.83) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7386.12 via Frontend Transport; Thu, 14 Mar 2024 11:43:36 +0000 Received: from rnnvmail204.nvidia.com (10.129.68.6) by mail.nvidia.com (10.129.200.67) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.41; Thu, 14 Mar 2024 04:43:26 -0700 Received: from rnnvmail204.nvidia.com (10.129.68.6) by rnnvmail204.nvidia.com (10.129.68.6) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1258.12; Thu, 14 Mar 2024 04:43:25 -0700 Received: from nvidia.com (10.127.8.12) by mail.nvidia.com (10.129.68.6) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1258.12 via Frontend Transport; Thu, 14 Mar 2024 04:43:22 -0700 From: Itamar Gozlan To: , , , , , , , Dariusz Sosnowski , Ori Kam , Suanming Mou , Matan Azrad CC: , Subject: [PATCH 11/13] net/mlx5/hws: drop at attach number of actions Date: Thu, 14 Mar 2024 13:42:18 +0200 Message-ID: <20240314114220.203241-11-igozlan@nvidia.com> X-Mailer: git-send-email 2.39.3 In-Reply-To: <20240314114220.203241-1-igozlan@nvidia.com> References: <20240314114220.203241-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: CY4PEPF0000E9D8:EE_|PH8PR12MB6843:EE_ X-MS-Office365-Filtering-Correlation-Id: 94b17101-3b7b-403e-9a50-08dc441bfc5d 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; X-Microsoft-Antispam-Message-Info: /bKSWgiZ87X1bZgCEpTgXbLmZ+COVvSsJCV4lPlbrHI4q7H/8dOLOX9cAeLLgJUYRF2oKp5HP9qIwWADjDGkMlvhAkdi3tvZd1tmmNPqd81PKuIXFkK1ZS8kCWTWMzC5QbpIJByWNb7eRQ7ZC3OarQoj5/D8D8ojhJiilV7+qGnUWJyWyUDI061HFLQQSVpKrWEJVdr2byMUIPl3nS+wiT/3bWdtc3VjfSjFOasUMHBqvL6F5vdGzIP9Ljxc2+q4wYG79Tz866aHiHmi+QHJrDf+pRfslsyul+McFNN5UxcYdpM3Gw4qY2/p3Y3xvdUU53mE9tFVJELrPxPTM3qKuEFM+URyx66coZTMRzR3amLoHkQKQGMjeDhDqILtwElOLEubuigzjgLHmEeEYj2x5zrOOIOzGOXE17iYucvRjgRich4zsH3nzhm7IPzO1n9gScbxH9cQv78sq19qyL4fejeePJ52/YetlRfFMO9RhYQmFrwQE4vDIJcP6wcjhhTsH7Ko6kGyB5sz1XrcSRvKkwTPnfO06zw9G6hxbBUYq5K6XS2USRqiDaHWIUdRb+lU4kv/sHkqVynDvoQ50OyIx0DzoXrUrVllZszCn1t02Tk27UyO1Tg+WYN/hbWBNM6m8qmiRItqbTwZrYHqrTy1PshND3K9Li+a+DG1S2VRYHq+FeNrzQphiDQaj1QAJldUqMbBsRN+cj+xImPMi4rpq5Tx0vUtvhgrIJGbkoaYyxG1UUF6MZBWSYlM856Bp93jaeGlI2gvHoNsI3LjmRO/cw== X-Forefront-Antispam-Report: CIP:216.228.117.161; CTRY:US; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:mail.nvidia.com; PTR:dc6edge2.nvidia.com; CAT:NONE; SFS:(13230031)(376005)(82310400014)(1800799015)(36860700004)(921011); DIR:OUT; SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 14 Mar 2024 11:43:36.7471 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 94b17101-3b7b-403e-9a50-08dc441bfc5d X-MS-Exchange-CrossTenant-Id: 43083d15-7273-40c1-b7db-39efd9ccc17a X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=43083d15-7273-40c1-b7db-39efd9ccc17a; Ip=[216.228.117.161]; Helo=[mail.nvidia.com] X-MS-Exchange-CrossTenant-AuthSource: CY4PEPF0000E9D8.namprd05.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: PH8PR12MB6843 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