[0/5] net/mlx5: add indirect QUOTA create/query/modify
Message ID | 20230118125556.23622-1-getelson@nvidia.com (mailing list archive) |
---|---|
Headers |
Return-Path: <dev-bounces@dpdk.org> X-Original-To: patchwork@inbox.dpdk.org Delivered-To: patchwork@inbox.dpdk.org Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 2519B4240D; Wed, 18 Jan 2023 13:56:28 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id CE706400D6; Wed, 18 Jan 2023 13:56:27 +0100 (CET) Received: from NAM12-DM6-obe.outbound.protection.outlook.com (mail-dm6nam12on2084.outbound.protection.outlook.com [40.107.243.84]) by mails.dpdk.org (Postfix) with ESMTP id C5A094003F for <dev@dpdk.org>; Wed, 18 Jan 2023 13:56:25 +0100 (CET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=PLZOAqqe0BOHMcXiOHT8lRp14Q8OidhP7uc9Whdq+YuhD66vNVeBsdzciSMZu4pLPTPpc25QTa+K9qzEEkl1oW/2IM9iYOS/bzSrfJWVZ4BOmsX8IAMD5dL2QLZFDw3jpTsAg61DeY9n7X7hkxifyTFppreD98Tcp7JPR9ft4phQ1z7YD22/YlspXJ2A3b2QL+tP7Be4KvXZp+vaHC8BoOgx1k/zOfNTrBEPdQftv2xxsoY9+B5QdxP21NVqhj6/LWOTWWYG6QSAycX8cbLuyB4DUiEnNA7bJ88bnczl1jdSp6NZxTdCKTRCAWWb+0LF4JYAL4Q6mGCQQkjABAWZqQ== 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=PgWlpMgJ2LFZ+VET0kD5B6F+Y6DyGGRTOnbtwwlWpbc=; b=log9yQkj1g8d7j37sffKoT+Mrd5hJXYy3SCAvCSXfMbjDBKukhACjCTaUVNeA+5AYvFlY5L/NEtvJVOzChYZWPu8BQsRHc/h/73SCiLTF79ebbG+whm2MQnZUKO/XnXEaPA9lpLSpP2gb4I+QR4N4Rv5Of5jmaeAaXW4p7i6PgY7rCm/riDtIshrL7IGEZqk/EbO2IabFTcnXzAkkGUEc5i5CreDJt7XtwIVfbvLCVkgO3nsjCO8/5KR9D+VkkV4YnT9B63K0NKQXIoJvt+fLLrIBCTG2AU9y1GQcXL1q9L8W6FuWPQV01ZF290EAGjq5/tjAUgpH+k9vLm3AdKpJw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 216.228.117.161) smtp.rcpttodomain=dpdk.org 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 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=PgWlpMgJ2LFZ+VET0kD5B6F+Y6DyGGRTOnbtwwlWpbc=; b=oYtH3uS+JvIhP0EXVYqR5TtTU3hxca8tJlE5kgILm1B8ItF0JAHFdB28GqUASR6MxiaVAj9aMHZVJM5OxKxBx9nKoq3th2bzFb50FGqaWI0w2mxZH/4JkW0zZ0MLDBKP7oONevFeyNudhknyefA4/DQ/wF/8FyYjx6o6lla66nR3833FuqnP3XiXPFe4gXTgiIIySO1/LEoNQWw32qLEpTToaqzVb+xqpL/5EgQ/zjHwPChcDtWlOxB/U3PU+sQYQQVAW8idiVpJ7L7ACusqIqbkPDGuDaEdg8Nd3jnLDNi1IgzNAzoxjbBfOqB+2Q42WRzWx63p32Yra7Hks/RLQw== Received: from BN0PR04CA0140.namprd04.prod.outlook.com (2603:10b6:408:ed::25) by PH7PR12MB6419.namprd12.prod.outlook.com (2603:10b6:510:1fd::5) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5986.23; Wed, 18 Jan 2023 12:56:23 +0000 Received: from BN8NAM11FT051.eop-nam11.prod.protection.outlook.com (2603:10b6:408:ed:cafe::c9) by BN0PR04CA0140.outlook.office365.com (2603:10b6:408:ed::25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6002.19 via Frontend Transport; Wed, 18 Jan 2023 12:56:23 +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 BN8NAM11FT051.mail.protection.outlook.com (10.13.177.66) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6002.13 via Frontend Transport; Wed, 18 Jan 2023 12:56:22 +0000 Received: from rnnvmail201.nvidia.com (10.129.68.8) 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.36; Wed, 18 Jan 2023 04:56:12 -0800 Received: from nvidia.com (10.126.231.37) by rnnvmail201.nvidia.com (10.129.68.8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.36; Wed, 18 Jan 2023 04:56:10 -0800 From: Gregory Etelson <getelson@nvidia.com> To: <dev@dpdk.org> CC: <getelson@nvidia.com>, <matan@nvidia.com>, <rasland@nvidia.com> Subject: [PATCH 0/5] net/mlx5: add indirect QUOTA create/query/modify Date: Wed, 18 Jan 2023 14:55:51 +0200 Message-ID: <20230118125556.23622-1-getelson@nvidia.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Originating-IP: [10.126.231.37] X-ClientProxiedBy: rnnvmail201.nvidia.com (10.129.68.8) To rnnvmail201.nvidia.com (10.129.68.8) X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: BN8NAM11FT051:EE_|PH7PR12MB6419:EE_ X-MS-Office365-Filtering-Correlation-Id: 49f71297-8a21-4e6a-5f04-08daf95366ea X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: I2I77XxQ7p83THtk3IMu7RN4x+6iuS6sXK/xUT7XHKbhS97RHy2jg+BOZ9+Q4JVFhvL9l9unm8Vgu+9vv+SqLiazo0ndF8sP0dqHzXCImTq2PMMbYwV4hnGb6xC3X2Xf5AzQ77oKkO68bvrQwnRVe6kp7R7r9R9PVyUW/or65U7QiYWr6cKCmpoynENFzrfc3LCl89mf0+G12P7DCYPAFyEAAFuInw050c9waa71peZYKkYEJ6hnYIeSpKNpY0Ci/fFKhK+yDxi+l+8J1J95U7N2PlE4UU3uGbsPt5rf0fuDLpADBpAgEagMaF5A2yEvmLANoBseXDldQ6js6cBvh+WAXYotgItt3ArNHqpH+IC8yomGfEKSMIrK2vbw2+ZJR5u2aKNk03Rl6plVHasiMYQ3lRGJ65z235E63FHGedMpY9Kv+AmpUBAMa8e0y9gcgbqhVrZEKn5uU7mgnrYL9bqovR/M6vFtpU7lmZGcwLf5OhPBOpfGOG78vK0uK+UKQyF29D3VvD3Bv+N69BYtrdCft+7zR9Ar8lOy489gHQa1UzCqD/SSRFWq3M/GFzKW9AYono8fuurnDR4ZKxqDA1CriKBENNf4C4PNdwfHZ6O/anuCudTWUXGI7OBOCiGs9+0zB5/8xeHZZDt2YtphbO6l3A8SNDcMriB5Frv8IpiBHCY9AWUs3KEJ8VI+voJ7hIg7OPvSC6C2OF1dBInytg== 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:(13230022)(4636009)(346002)(39860400002)(136003)(396003)(376002)(451199015)(40470700004)(46966006)(36840700001)(82740400003)(7636003)(36756003)(40460700003)(55016003)(40480700001)(82310400005)(356005)(86362001)(16526019)(70586007)(186003)(26005)(6916009)(70206006)(4326008)(336012)(6286002)(478600001)(47076005)(1076003)(54906003)(2616005)(7696005)(36860700001)(316002)(107886003)(8936002)(8676002)(6666004)(5660300002)(2906002)(15650500001)(426003)(41300700001)(4744005)(83380400001); DIR:OUT; SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 18 Jan 2023 12:56:22.8552 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 49f71297-8a21-4e6a-5f04-08daf95366ea 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: BN8NAM11FT051.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: PH7PR12MB6419 X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions <dev.dpdk.org> List-Unsubscribe: <https://mails.dpdk.org/options/dev>, <mailto:dev-request@dpdk.org?subject=unsubscribe> List-Archive: <http://mails.dpdk.org/archives/dev/> List-Post: <mailto:dev@dpdk.org> List-Help: <mailto:dev-request@dpdk.org?subject=help> List-Subscribe: <https://mails.dpdk.org/listinfo/dev>, <mailto:dev-request@dpdk.org?subject=subscribe> Errors-To: dev-bounces@dpdk.org |
Message
Etelson, Gregory
Jan. 18, 2023, 12:55 p.m. UTC
Add indirect quota flow action. Add match on quota flow item. Gregory Etelson (5): net/mlx5: update query fields in async job structure net/mlx5: remove code duplication common/mlx5: update MTR ASO definitions net/mlx5: add indirect QUOTA create/query/modify mlx5dr: Definer, translate RTE quota item drivers/common/mlx5/mlx5_prm.h | 4 + drivers/net/mlx5/hws/mlx5dr_definer.c | 61 +++ drivers/net/mlx5/meson.build | 1 + drivers/net/mlx5/mlx5.h | 88 +++- drivers/net/mlx5/mlx5_flow.c | 62 +++ drivers/net/mlx5/mlx5_flow.h | 20 +- drivers/net/mlx5/mlx5_flow_aso.c | 10 +- drivers/net/mlx5/mlx5_flow_hw.c | 527 +++++++++++++------ drivers/net/mlx5/mlx5_flow_quota.c | 726 ++++++++++++++++++++++++++ 9 files changed, 1318 insertions(+), 181 deletions(-) create mode 100644 drivers/net/mlx5/mlx5_flow_quota.c