Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/122738/?format=api
https://patches.dpdk.org/api/patches/122738/?format=api", "web_url": "https://patches.dpdk.org/project/dpdk/patch/20230131093346.1261066-16-valex@nvidia.com/", "project": { "id": 1, "url": "https://patches.dpdk.org/api/projects/1/?format=api", "name": "DPDK", "link_name": "dpdk", "list_id": "dev.dpdk.org", "list_email": "dev@dpdk.org", "web_url": "http://core.dpdk.org", "scm_url": "git://dpdk.org/dpdk", "webscm_url": "http://git.dpdk.org/dpdk", "list_archive_url": "https://inbox.dpdk.org/dev", "list_archive_url_format": "https://inbox.dpdk.org/dev/{}", "commit_url_format": "" }, "msgid": "<20230131093346.1261066-16-valex@nvidia.com>", "list_archive_url": "https://inbox.dpdk.org/dev/20230131093346.1261066-16-valex@nvidia.com", "date": "2023-01-31T09:33:44", "name": "[v1,15/16] net/mlx5/hws: rename pattern cache object", "commit_ref": null, "pull_url": null, "state": "superseded", "archived": true, "hash": "aa15089562ee273b3cac718ab925c9b0450cbb43", "submitter": { "id": 2858, "url": "https://patches.dpdk.org/api/people/2858/?format=api", "name": "Alex Vesker", "email": "valex@nvidia.com" }, "delegate": { "id": 3268, "url": "https://patches.dpdk.org/api/users/3268/?format=api", "username": "rasland", "first_name": "Raslan", "last_name": "Darawsheh", "email": "rasland@nvidia.com" }, "mbox": "https://patches.dpdk.org/project/dpdk/patch/20230131093346.1261066-16-valex@nvidia.com/mbox/", "series": [ { "id": 26709, "url": "https://patches.dpdk.org/api/series/26709/?format=api", "web_url": "https://patches.dpdk.org/project/dpdk/list/?series=26709", "date": "2023-01-31T09:33:29", "name": "net/mlx5/hws: support range and partial hash matching", "version": 1, "mbox": "https://patches.dpdk.org/series/26709/mbox/" } ], "comments": "https://patches.dpdk.org/api/patches/122738/comments/", "check": "success", "checks": "https://patches.dpdk.org/api/patches/122738/checks/", "tags": {}, "related": [], "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])\n\tby inbox.dpdk.org (Postfix) with ESMTP id E63EC41B8D;\n\tTue, 31 Jan 2023 10:36:46 +0100 (CET)", "from mails.dpdk.org (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id AAEDC42FC0;\n\tTue, 31 Jan 2023 10:35:10 +0100 (CET)", "from NAM04-DM6-obe.outbound.protection.outlook.com\n (mail-dm6nam04on2044.outbound.protection.outlook.com [40.107.102.44])\n by mails.dpdk.org (Postfix) with ESMTP id EC64542F9E\n for <dev@dpdk.org>; Tue, 31 Jan 2023 10:35:07 +0100 (CET)", "from MW4PR03CA0088.namprd03.prod.outlook.com (2603:10b6:303:b6::33)\n by IA0PR12MB7604.namprd12.prod.outlook.com (2603:10b6:208:438::9)\n with Microsoft SMTP Server (version=TLS1_2,\n cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6043.36; Tue, 31 Jan\n 2023 09:35:06 +0000", "from CO1NAM11FT042.eop-nam11.prod.protection.outlook.com\n (2603:10b6:303:b6:cafe::75) by MW4PR03CA0088.outlook.office365.com\n (2603:10b6:303:b6::33) with Microsoft SMTP Server (version=TLS1_2,\n cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6043.36 via Frontend\n Transport; Tue, 31 Jan 2023 09:35:06 +0000", "from mail.nvidia.com (216.228.117.161) by\n CO1NAM11FT042.mail.protection.outlook.com (10.13.174.250) with Microsoft SMTP\n Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id\n 15.20.6043.23 via Frontend Transport; Tue, 31 Jan 2023 09:35:05 +0000", "from rnnvmail201.nvidia.com (10.129.68.8) by mail.nvidia.com\n (10.129.200.67) with Microsoft SMTP Server (version=TLS1_2,\n cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.36; Tue, 31 Jan\n 2023 01:34:40 -0800", "from nvidia.com (10.126.231.37) by rnnvmail201.nvidia.com\n (10.129.68.8) with Microsoft SMTP Server (version=TLS1_2,\n cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.36; Tue, 31 Jan\n 2023 01:34:38 -0800" ], "ARC-Seal": "i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none;\n b=e+nDFRbnKp9YbKCrie1Zhh4PA0SQ8UxXBJMSx+hWlnE7pU7TiFgs1/fGYipciXtZ/agRjjiEVNebo35LQoCuWqYR58/nl7fVeWsQunGKZcIWOieVJVtH52z0NlU+6UYFJNvcNZyKXxn284OIqWuglU7KGJXtqNNgF7VTpeqT5tc2zJqmPCgZ4cyGmsKs83jc2WY+MrJpTcqsupoasHHXDuhjyfDvce8u9TzXMZLiiY27sV7y4nZU+M3L/71YR42FW1Jexvudc/5xrONKjCiaCd/dpmmcuG6mPF3xcnTFvBxmlxf3XLxOT8TppFfiliGBP0ptm0vwrVBg8M0VlZDsMg==", "ARC-Message-Signature": "i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com;\n s=arcselector9901;\n 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;\n bh=gcjdhA+ycRYRGGPWCAIub+IYkgkzRTgwfSrBYJD5gj4=;\n b=aXfYqH08zpxM7CA17X027+sh3OlLoaHPL2YM/+zZm8s6pCVremoWexZEuCDv989NZpCmHFHmsoVC81JVfZSxmgxKneoYtiKVRLfQXLW1Dgt8nt+ZPxFUKpmF6zhnsk09opIAhaER7XUJ4BrVJLUA+hKZ2mtxcrm9zBYBfHoUO3Eq+PuRuevbLNewc6ypctZhM1jMGKscmbdI57Ku+PKQ78xRMU7gEEuShkMKclSjU0PM+kJgGKuZjIYq3YesCOHO1ppX5vlLhbQeDr7WA2BWfeaYh9cj8/JAwx+2S+jYOk4/6y7Rm+MuwXOJ+eHWCBH+hQMCbi/sQDNy4TWMY0KwGQ==", "ARC-Authentication-Results": "i=1; mx.microsoft.com 1; spf=pass (sender ip is\n 216.228.117.161) smtp.rcpttodomain=monjalon.net smtp.mailfrom=nvidia.com;\n dmarc=pass (p=reject sp=reject pct=100) action=none header.from=nvidia.com;\n dkim=none (message not signed); arc=none", "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed; d=Nvidia.com;\n s=selector2;\n h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck;\n bh=gcjdhA+ycRYRGGPWCAIub+IYkgkzRTgwfSrBYJD5gj4=;\n b=XfdQFfpc85J4cW9rVhYqPLIs8Op+m+zsfE8XxffQEOqyQtHPXF2nhZ2WNpn848TeDCnrjaGwscVyztzRwFZNc8tCqJRwvca7/A+Gx70Mg141kO4qLein1F5bwZOLqz4zGVI6i3CXlm3rNXtOqYufP32G8YHoItKaTzbIcmSFEsc3Pj1HfR1G17AHwp/5lQ4Jt/CV671SjMg/GFePkHWMYSegoeXHLO4eKU8SVy3ihY3ZtKlpMVensjCZrrfHZUz0T/rL3s90q6eJfGumdiEHhvzVm129Berx28R8i/c/8QZ9MVuAHcMZVn1PHpyNCQvOz00dCSPnu7Wm34BqEyTkBg==", "X-MS-Exchange-Authentication-Results": "spf=pass (sender IP is 216.228.117.161)\n smtp.mailfrom=nvidia.com;\n dkim=none (message not signed)\n header.d=none;dmarc=pass action=none header.from=nvidia.com;", "Received-SPF": "Pass (protection.outlook.com: domain of nvidia.com designates\n 216.228.117.161 as permitted sender) receiver=protection.outlook.com;\n client-ip=216.228.117.161; helo=mail.nvidia.com; pr=C", "From": "Alex Vesker <valex@nvidia.com>", "To": "<valex@nvidia.com>, <viacheslavo@nvidia.com>, <thomas@monjalon.net>,\n \"Matan Azrad\" <matan@nvidia.com>", "CC": "<dev@dpdk.org>, <orika@nvidia.com>", "Subject": "[v1 15/16] net/mlx5/hws: rename pattern cache object", "Date": "Tue, 31 Jan 2023 11:33:44 +0200", "Message-ID": "<20230131093346.1261066-16-valex@nvidia.com>", "X-Mailer": "git-send-email 2.27.0", "In-Reply-To": "<20230131093346.1261066-1-valex@nvidia.com>", "References": "<20230131093346.1261066-1-valex@nvidia.com>", "MIME-Version": "1.0", "Content-Transfer-Encoding": "8bit", "Content-Type": "text/plain", "X-Originating-IP": "[10.126.231.37]", "X-ClientProxiedBy": "rnnvmail203.nvidia.com (10.129.68.9) To\n rnnvmail201.nvidia.com (10.129.68.8)", "X-EOPAttributedMessage": "0", "X-MS-PublicTrafficType": "Email", "X-MS-TrafficTypeDiagnostic": "CO1NAM11FT042:EE_|IA0PR12MB7604:EE_", "X-MS-Office365-Filtering-Correlation-Id": "4beeb992-170d-4fad-1f28-08db036e6fdf", "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": "\n zgv1VKj5W41f3aeyCWeZsiDIne4Kc2P85hHgmRX8p8nfaaWaigsv417bp4qDGoByoTVn0ZbBlF3hF8G0tb4R5+RJsKpHGSxhwmT0nCFPkrjDWWmahXJGALYMAboEZTqSMYhcbaqXqhHmBqFlxn06tnbn9ahxJ6RdYs8aYzMTyu0fwpdi45yV0hW/QCbVucqKJ1uCukxjKD5MdwNXSdYRq+DxcW3zM1gat4jDKnEhbrQOosnQJ6Yw2mhyk7WVBXXO900rC/1smOV6KslY49E/pMpRVwk0CsOcyap8gqiskSTpF4C/5gy4OtPTciKFtYj3p5ycoOxZ3KtFfZy8AzZ9LKK3q2Ml/dhWF4yJwyBGslXvDmUNe3SfswYShtTIFbYk93TEdmYlaj7WUFos7Vupl/+fAuV0LCJUVVmtf+8PLHQqJjYz1RMiJkm+p68FliIxILXdS7kk0Q7ryZnXLS54RVJw/XLEyVBKK9DF45LeG3++VfnmcEiZgRmIAm25+ZYj+SKwlT6S7uw3/BClv99R+wztfGGuqKZgv9c8nsG8Zi7VS2G2b6t4Ka27egQ7m6d8WJydmb9nGLzFNhHZr4IbxmP7G9uQALX1Of5cJW7C6vU/6vCq2zPT6McQAhoLJNlFMZSG4e9po3BEKpX9cQUO9GCHZNc6d4gzQW12Wn4peYp7VtblDUyCxgpQ2thjd+NqyoUVYh1E9Gk0nXFGV4Bh6w==", "X-Forefront-Antispam-Report": "CIP:216.228.117.161; CTRY:US; LANG:en; SCL:1;\n SRV:;\n IPV:NLI; SFV:NSPM; H:mail.nvidia.com; PTR:dc6edge2.nvidia.com; CAT:NONE;\n SFS:(13230025)(4636009)(396003)(346002)(376002)(136003)(39860400002)(451199018)(40470700004)(46966006)(36840700001)(6286002)(8936002)(40460700003)(356005)(41300700001)(86362001)(5660300002)(83380400001)(426003)(47076005)(336012)(36860700001)(110136005)(7636003)(54906003)(4326008)(2616005)(82740400003)(6636002)(16526019)(55016003)(70206006)(8676002)(70586007)(40480700001)(316002)(6666004)(186003)(7696005)(1076003)(36756003)(26005)(478600001)(107886003)(82310400005)(2906002);\n DIR:OUT; SFP:1101;", "X-OriginatorOrg": "Nvidia.com", "X-MS-Exchange-CrossTenant-OriginalArrivalTime": "31 Jan 2023 09:35:05.9674 (UTC)", "X-MS-Exchange-CrossTenant-Network-Message-Id": "\n 4beeb992-170d-4fad-1f28-08db036e6fdf", "X-MS-Exchange-CrossTenant-Id": "43083d15-7273-40c1-b7db-39efd9ccc17a", "X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp": "\n TenantId=43083d15-7273-40c1-b7db-39efd9ccc17a; Ip=[216.228.117.161];\n Helo=[mail.nvidia.com]", "X-MS-Exchange-CrossTenant-AuthSource": "\n CO1NAM11FT042.eop-nam11.prod.protection.outlook.com", "X-MS-Exchange-CrossTenant-AuthAs": "Anonymous", "X-MS-Exchange-CrossTenant-FromEntityHeader": "HybridOnPrem", "X-MS-Exchange-Transport-CrossTenantHeadersStamped": "IA0PR12MB7604", "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>,\n <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>,\n <mailto:dev-request@dpdk.org?subject=subscribe>", "Errors-To": "dev-bounces@dpdk.org" }, "content": "To have the same name convention for future caches, use\ncache and cache item naming.\n\nSigned-off-by: Alex Vesker <valex@nvidia.com>\n---\n drivers/net/mlx5/hws/mlx5dr_pat_arg.c | 22 +++++++++++-----------\n drivers/net/mlx5/hws/mlx5dr_pat_arg.h | 6 +++---\n 2 files changed, 14 insertions(+), 14 deletions(-)", "diff": "diff --git a/drivers/net/mlx5/hws/mlx5dr_pat_arg.c b/drivers/net/mlx5/hws/mlx5dr_pat_arg.c\nindex 152025d302..6ed04dac6d 100644\n--- a/drivers/net/mlx5/hws/mlx5dr_pat_arg.c\n+++ b/drivers/net/mlx5/hws/mlx5dr_pat_arg.c\n@@ -94,13 +94,13 @@ static bool mlx5dr_pat_compare_pattern(enum mlx5dr_action_type cur_type,\n \treturn true;\n }\n \n-static struct mlx5dr_pat_cached_pattern *\n+static struct mlx5dr_pattern_cache_item *\n mlx5dr_pat_find_cached_pattern(struct mlx5dr_pattern_cache *cache,\n \t\t\t struct mlx5dr_action *action,\n \t\t\t uint16_t num_of_actions,\n \t\t\t __be64 *actions)\n {\n-\tstruct mlx5dr_pat_cached_pattern *cached_pat;\n+\tstruct mlx5dr_pattern_cache_item *cached_pat;\n \n \tLIST_FOREACH(cached_pat, &cache->head, next) {\n \t\tif (mlx5dr_pat_compare_pattern(cached_pat->type,\n@@ -115,13 +115,13 @@ mlx5dr_pat_find_cached_pattern(struct mlx5dr_pattern_cache *cache,\n \treturn NULL;\n }\n \n-static struct mlx5dr_pat_cached_pattern *\n+static struct mlx5dr_pattern_cache_item *\n mlx5dr_pat_get_existing_cached_pattern(struct mlx5dr_pattern_cache *cache,\n \t\t\t\t struct mlx5dr_action *action,\n \t\t\t\t uint16_t num_of_actions,\n \t\t\t\t __be64 *actions)\n {\n-\tstruct mlx5dr_pat_cached_pattern *cached_pattern;\n+\tstruct mlx5dr_pattern_cache_item *cached_pattern;\n \n \tcached_pattern = mlx5dr_pat_find_cached_pattern(cache, action, num_of_actions, actions);\n \tif (cached_pattern) {\n@@ -134,11 +134,11 @@ mlx5dr_pat_get_existing_cached_pattern(struct mlx5dr_pattern_cache *cache,\n \treturn cached_pattern;\n }\n \n-static struct mlx5dr_pat_cached_pattern *\n+static struct mlx5dr_pattern_cache_item *\n mlx5dr_pat_get_cached_pattern_by_action(struct mlx5dr_pattern_cache *cache,\n \t\t\t\t\tstruct mlx5dr_action *action)\n {\n-\tstruct mlx5dr_pat_cached_pattern *cached_pattern;\n+\tstruct mlx5dr_pattern_cache_item *cached_pattern;\n \n \tLIST_FOREACH(cached_pattern, &cache->head, next) {\n \t\tif (cached_pattern->mh_data.pattern_obj->id == action->modify_header.pattern_obj->id)\n@@ -148,14 +148,14 @@ mlx5dr_pat_get_cached_pattern_by_action(struct mlx5dr_pattern_cache *cache,\n \treturn NULL;\n }\n \n-static struct mlx5dr_pat_cached_pattern *\n+static struct mlx5dr_pattern_cache_item *\n mlx5dr_pat_add_pattern_to_cache(struct mlx5dr_pattern_cache *cache,\n \t\t\t\tstruct mlx5dr_devx_obj *pattern_obj,\n \t\t\t\tenum mlx5dr_action_type type,\n \t\t\t\tuint16_t num_of_actions,\n \t\t\t\t__be64 *actions)\n {\n-\tstruct mlx5dr_pat_cached_pattern *cached_pattern;\n+\tstruct mlx5dr_pattern_cache_item *cached_pattern;\n \n \tcached_pattern = simple_calloc(1, sizeof(*cached_pattern));\n \tif (!cached_pattern) {\n@@ -189,7 +189,7 @@ mlx5dr_pat_add_pattern_to_cache(struct mlx5dr_pattern_cache *cache,\n }\n \n static void\n-mlx5dr_pat_remove_pattern(struct mlx5dr_pat_cached_pattern *cached_pattern)\n+mlx5dr_pat_remove_pattern(struct mlx5dr_pattern_cache_item *cached_pattern)\n {\n \tLIST_REMOVE(cached_pattern, next);\n \tsimple_free(cached_pattern->mh_data.data);\n@@ -200,7 +200,7 @@ static void\n mlx5dr_pat_put_pattern(struct mlx5dr_pattern_cache *cache,\n \t\t struct mlx5dr_action *action)\n {\n-\tstruct mlx5dr_pat_cached_pattern *cached_pattern;\n+\tstruct mlx5dr_pattern_cache_item *cached_pattern;\n \n \tpthread_spin_lock(&cache->lock);\n \tcached_pattern = mlx5dr_pat_get_cached_pattern_by_action(cache, action);\n@@ -225,7 +225,7 @@ static int mlx5dr_pat_get_pattern(struct mlx5dr_context *ctx,\n \t\t\t\t size_t pattern_sz,\n \t\t\t\t __be64 *pattern)\n {\n-\tstruct mlx5dr_pat_cached_pattern *cached_pattern;\n+\tstruct mlx5dr_pattern_cache_item *cached_pattern;\n \tint ret = 0;\n \n \tpthread_spin_lock(&ctx->pattern_cache->lock);\ndiff --git a/drivers/net/mlx5/hws/mlx5dr_pat_arg.h b/drivers/net/mlx5/hws/mlx5dr_pat_arg.h\nindex d9353e9a3e..92db6d6aee 100644\n--- a/drivers/net/mlx5/hws/mlx5dr_pat_arg.h\n+++ b/drivers/net/mlx5/hws/mlx5dr_pat_arg.h\n@@ -24,10 +24,10 @@ enum {\n struct mlx5dr_pattern_cache {\n \t/* Protect pattern list */\n \tpthread_spinlock_t lock;\n-\tLIST_HEAD(pattern_head, mlx5dr_pat_cached_pattern) head;\n+\tLIST_HEAD(pattern_head, mlx5dr_pattern_cache_item) head;\n };\n \n-struct mlx5dr_pat_cached_pattern {\n+struct mlx5dr_pattern_cache_item {\n \tenum mlx5dr_action_type type;\n \tstruct {\n \t\tstruct mlx5dr_devx_obj *pattern_obj;\n@@ -36,7 +36,7 @@ struct mlx5dr_pat_cached_pattern {\n \t\tuint16_t num_of_actions;\n \t} mh_data;\n \tuint32_t refcount;\n-\tLIST_ENTRY(mlx5dr_pat_cached_pattern) next;\n+\tLIST_ENTRY(mlx5dr_pattern_cache_item) next;\n };\n \n enum mlx5dr_arg_chunk_size\n", "prefixes": [ "v1", "15/16" ] }{ "id": 122738, "url": "