Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/95068/?format=api
https://patches.dpdk.org/api/patches/95068/?format=api", "web_url": "https://patches.dpdk.org/project/dpdk/patch/20210630124609.8711-15-suanmingm@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": "<20210630124609.8711-15-suanmingm@nvidia.com>", "list_archive_url": "https://inbox.dpdk.org/dev/20210630124609.8711-15-suanmingm@nvidia.com", "date": "2021-06-30T12:46:01", "name": "[v2,14/22] net/mlx5: adjust the hash bucket size", "commit_ref": null, "pull_url": null, "state": "superseded", "archived": true, "hash": "eb4b3610c9705f17ded55c37f6e9868f353f8f92", "submitter": { "id": 1887, "url": "https://patches.dpdk.org/api/people/1887/?format=api", "name": "Suanming Mou", "email": "suanmingm@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/20210630124609.8711-15-suanmingm@nvidia.com/mbox/", "series": [ { "id": 17549, "url": "https://patches.dpdk.org/api/series/17549/?format=api", "web_url": "https://patches.dpdk.org/project/dpdk/list/?series=17549", "date": "2021-06-30T12:45:47", "name": "net/mlx5: insertion rate optimization", "version": 2, "mbox": "https://patches.dpdk.org/series/17549/mbox/" } ], "comments": "https://patches.dpdk.org/api/patches/95068/comments/", "check": "success", "checks": "https://patches.dpdk.org/api/patches/95068/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 9135DA0A0F;\n\tWed, 30 Jun 2021 14:48:20 +0200 (CEST)", "from [217.70.189.124] (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id 673CF412BF;\n\tWed, 30 Jun 2021 14:47:06 +0200 (CEST)", "from NAM04-MW2-obe.outbound.protection.outlook.com\n (mail-mw2nam08on2048.outbound.protection.outlook.com [40.107.101.48])\n by mails.dpdk.org (Postfix) with ESMTP id 06CD7412B0\n for <dev@dpdk.org>; Wed, 30 Jun 2021 14:47:03 +0200 (CEST)", "from BN6PR1701CA0007.namprd17.prod.outlook.com\n (2603:10b6:405:15::17) by DM5PR12MB1243.namprd12.prod.outlook.com\n (2603:10b6:3:74::22) with Microsoft SMTP Server (version=TLS1_2,\n cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4264.23; Wed, 30 Jun\n 2021 12:47:00 +0000", "from BN8NAM11FT045.eop-nam11.prod.protection.outlook.com\n (2603:10b6:405:15:cafe::73) by BN6PR1701CA0007.outlook.office365.com\n (2603:10b6:405:15::17) with Microsoft SMTP Server (version=TLS1_2,\n cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4287.23 via Frontend\n Transport; Wed, 30 Jun 2021 12:47:00 +0000", "from mail.nvidia.com (216.228.112.34) by\n BN8NAM11FT045.mail.protection.outlook.com (10.13.177.47) with Microsoft SMTP\n Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id\n 15.20.4287.22 via Frontend Transport; Wed, 30 Jun 2021 12:46:59 +0000", "from nvidia.com (172.20.187.6) by HQMAIL107.nvidia.com\n (172.20.187.13) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Wed, 30 Jun\n 2021 12:46:51 +0000" ], "ARC-Seal": "i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none;\n b=ha+FwI2GCuURnEPJ5WSO/4YA8xjBcRpJKN4dxkqYIagXjUXPLIvlECA/AqJgiQCCpBvS3A2ZOSDdkO5Ev8Yp7uMwxU9xUacW8/BitpeYI6zoQjb1rXQLQLDYNmjBfeJo8+QHlNbqLcM9TYo9sxDppGNpRIP8Bc6YANLe01FDjgYMwOyKsCFBoYgOPL9XfLJW5jeo6QOvLtkm/AGfmz7q/JmhIWngcWgwaWKqn/UvEt0wBngaCX25DbWuQ0wPJgjZE0Sw+rEHa3hvl0+bTYXJs48JAgGG/z+iPOwMY1i3foQ1HpwyiGMRxKbBF/KXF03J3j9oWirNwYNFDlsxR2htJQ==", "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-SenderADCheck;\n bh=SSzbIH/lxeoDm1FkFakA1l92v3ahJpdFLadBtjs29nQ=;\n b=VOdGmZrL75KhRqo2AFvB8ZsyTKy9cAZntwvOdVjQ3lh1/HKyXTLg5Eiz6E/HuQqdOMc54G+3PsWZThaHFkDbIqAfPlHiQkcAxzwi/bb1AZnp3aJMpwQASe192vW8exXy84lobwdtlBNxVZLOMW5RykdU0FsxaJfPKKcv64rVkzVcQej6f9mpSKIy3bxIRdx60RaZxJqKQ2XizvQcAhE4XvcXIo7VkMKzjlksK+nGYc1XeY9peq5oTWG4ORXdCitQCgL/bMCgpVIhYv4tNfrpObfGVG3q4ckDeeH0X/Enlr1xxLY93geHT/EQicO4rnj56DR6CqVJAw+AGSbSUGk0MQ==", "ARC-Authentication-Results": "i=1; mx.microsoft.com 1; spf=pass (sender ip is\n 216.228.112.34) smtp.rcpttodomain=dpdk.org smtp.mailfrom=nvidia.com;\n dmarc=pass (p=none sp=none 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=SSzbIH/lxeoDm1FkFakA1l92v3ahJpdFLadBtjs29nQ=;\n b=UP8D0kMuWfeXGGFy1M0m4qjOWDsco6kcIliJ6ht+HCuOEDMew22x3gcLZ+rn/Spf8YoGdHdC7eSwq7oP6KmiyiAwG75Q84EvE8Se9H0a4G6WxxBL26tH0cohudEOko6Z/ttrX/OFEer3jPi0cnMjW8pXR12XrkAtwT3hcp11lIhba21mgHjdwNgk1twXYD+x19Su6UyW+sqCmtPYPtSZWTR71fYors9JzmisHRaOkSNU1FNZwERnpx0cI6LSRcudV0a4pK/ptMiZUsZummFpgUl2gXHFC8nhrfqM/fCI034PnYlmJH+46gvDWHY/K9RUGAHJxczVxFdL1nL906wR4A==", "X-MS-Exchange-Authentication-Results": "spf=pass (sender IP is 216.228.112.34)\n smtp.mailfrom=nvidia.com; dpdk.org; dkim=none (message not signed)\n header.d=none;dpdk.org; dmarc=pass action=none header.from=nvidia.com;", "Received-SPF": "Pass (protection.outlook.com: domain of nvidia.com designates\n 216.228.112.34 as permitted sender) receiver=protection.outlook.com;\n client-ip=216.228.112.34; helo=mail.nvidia.com;", "From": "Suanming Mou <suanmingm@nvidia.com>", "To": "<viacheslavo@nvidia.com>, <matan@nvidia.com>", "CC": "<rasland@nvidia.com>, <orika@nvidia.com>, <dev@dpdk.org>", "Date": "Wed, 30 Jun 2021 15:46:01 +0300", "Message-ID": "<20210630124609.8711-15-suanmingm@nvidia.com>", "X-Mailer": "git-send-email 2.18.1", "In-Reply-To": "<20210630124609.8711-1-suanmingm@nvidia.com>", "References": "<20210527093403.1153127-1-suanmingm@nvidia.com>\n <20210630124609.8711-1-suanmingm@nvidia.com>", "MIME-Version": "1.0", "Content-Type": "text/plain", "X-Originating-IP": "[172.20.187.6]", "X-ClientProxiedBy": "HQMAIL101.nvidia.com (172.20.187.10) To\n HQMAIL107.nvidia.com (172.20.187.13)", "X-EOPAttributedMessage": "0", "X-MS-PublicTrafficType": "Email", "X-MS-Office365-Filtering-Correlation-Id": "73f194de-08d0-4825-f7df-08d93bc52724", "X-MS-TrafficTypeDiagnostic": "DM5PR12MB1243:", "X-Microsoft-Antispam-PRVS": "\n <DM5PR12MB1243C094AE669821F453A1F8C1019@DM5PR12MB1243.namprd12.prod.outlook.com>", "X-MS-Oob-TLC-OOBClassifiers": "OLM:628;", "X-MS-Exchange-SenderADCheck": "1", "X-Microsoft-Antispam": "BCL:0;", "X-Microsoft-Antispam-Message-Info": "\n oKxR1Q+8/6vFsawpmPa86CaHkQBWIuF6zp7GDz+hfAUmUDgvh+EkmtLyo8seF+jDFZrzbbMiTySVtTeBMHzyKx99jP8YKshiLjq5f8GEnpU6rqILIuQQHWTAWrj49JvO6Q0Vtk3wS9UKzJNfWcKK7UHjemqraNK+4DoVZ/nxBZp90CI+9HZgeu1VkPYJN/F8bV5JAiGO/k8NR6EuTYA3TBrdOFQZb+hHgxRAkWYHMh7Z6nc06YNySIw22mbLLtV81sKW7INx8kl4zyPs5kM1Pa7g37WgG05qrTYMWM5D33AZfHNNYyHKbmEgHEg/eQ5kJo/Zv+ObisCwJEHmVtjxfJN3O4XeoL2bWDh/94QYuxBR4nAQaH6PzrMv0Pzwk2kMseLmQXCjJiMbr7juKBVm/LyqtBrMG/2VJzgOgZzV6NPMDj7U9QuPmHUxM9p9Iu2gkH9AEWWcEKfNo/GawWDTI0mjaT83D6U+3A2HLyfKH5K9MrBDa3ALq6o0nQ/GGqIbnThPdkxO5ZyeTYdFJN3NhC4B9q8NNSnwqZPX9zFTft6UhXK/epwMByZShlpKmHqVQ+ZGjuVMLHKJx3HptqnQ+namKVjxsuNjtAJb6aNrs1zQJE3zdEmyq9bfyNSSHs363n7naKSqHUgFrATI99SWglshyKU2kkdfZL9OSxzXruWyHwTgdPePO/F4VzKuLRdxfaOV/iMBMxOyzB80nBAx/w==", "X-Forefront-Antispam-Report": "CIP:216.228.112.34; CTRY:US; LANG:en; SCL:1;\n SRV:;\n IPV:NLI; SFV:NSPM; H:mail.nvidia.com; PTR:schybrid03.nvidia.com; CAT:NONE;\n SFS:(4636009)(39860400002)(346002)(376002)(396003)(136003)(36840700001)(46966006)(7636003)(2616005)(4326008)(70206006)(356005)(6286002)(426003)(6666004)(2906002)(336012)(6636002)(83380400001)(70586007)(55016002)(5660300002)(7696005)(8936002)(8676002)(478600001)(86362001)(36860700001)(36756003)(54906003)(110136005)(26005)(1076003)(16526019)(186003)(316002)(82740400003)(47076005)(82310400003);\n DIR:OUT; SFP:1101;", "X-OriginatorOrg": "Nvidia.com", "X-MS-Exchange-CrossTenant-OriginalArrivalTime": "30 Jun 2021 12:46:59.8627 (UTC)", "X-MS-Exchange-CrossTenant-Network-Message-Id": "\n 73f194de-08d0-4825-f7df-08d93bc52724", "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.112.34];\n Helo=[mail.nvidia.com]", "X-MS-Exchange-CrossTenant-AuthSource": "\n BN8NAM11FT045.eop-nam11.prod.protection.outlook.com", "X-MS-Exchange-CrossTenant-AuthAs": "Anonymous", "X-MS-Exchange-CrossTenant-FromEntityHeader": "HybridOnPrem", "X-MS-Exchange-Transport-CrossTenantHeadersStamped": "DM5PR12MB1243", "Subject": "[dpdk-dev] [PATCH v2 14/22] net/mlx5: adjust the hash bucket size", "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", "Sender": "\"dev\" <dev-bounces@dpdk.org>" }, "content": "With the new per core optimization to the list, the hash bucket size\ncan be tuned to a more accurate number.\n\nThis commit adjusts the hash bucket size.\n\nSigned-off-by: Suanming Mou <suanmingm@nvidia.com>\n---\n drivers/net/mlx5/linux/mlx5_os.c | 2 +-\n drivers/net/mlx5/mlx5.c | 2 +-\n drivers/net/mlx5/mlx5_defs.h | 6 +++---\n drivers/net/mlx5/mlx5_flow.c | 5 ++---\n 4 files changed, 7 insertions(+), 8 deletions(-)", "diff": "diff --git a/drivers/net/mlx5/linux/mlx5_os.c b/drivers/net/mlx5/linux/mlx5_os.c\nindex cf573a9a4d..a82dc4db00 100644\n--- a/drivers/net/mlx5/linux/mlx5_os.c\n+++ b/drivers/net/mlx5/linux/mlx5_os.c\n@@ -50,7 +50,7 @@\n #include \"mlx5_nl.h\"\n #include \"mlx5_devx.h\"\n \n-#define MLX5_TAGS_HLIST_ARRAY_SIZE 8192\n+#define MLX5_TAGS_HLIST_ARRAY_SIZE\t(1 << 15)\n \n #ifndef HAVE_IBV_MLX5_MOD_MPW\n #define MLX5DV_CONTEXT_FLAGS_MPW_ALLOWED (1 << 2)\ndiff --git a/drivers/net/mlx5/mlx5.c b/drivers/net/mlx5/mlx5.c\nindex 713accf675..8fb7f4442d 100644\n--- a/drivers/net/mlx5/mlx5.c\n+++ b/drivers/net/mlx5/mlx5.c\n@@ -373,7 +373,7 @@ static const struct mlx5_indexed_pool_config mlx5_ipool_cfg[] = {\n #define MLX5_FLOW_MIN_ID_POOL_SIZE 512\n #define MLX5_ID_GENERATION_ARRAY_FACTOR 16\n \n-#define MLX5_FLOW_TABLE_HLIST_ARRAY_SIZE 4096\n+#define MLX5_FLOW_TABLE_HLIST_ARRAY_SIZE 1024\n \n /**\n * Decide whether representor ID is a HPF(host PF) port on BF2.\ndiff --git a/drivers/net/mlx5/mlx5_defs.h b/drivers/net/mlx5/mlx5_defs.h\nindex 906aa43c5a..ca67ce8213 100644\n--- a/drivers/net/mlx5/mlx5_defs.h\n+++ b/drivers/net/mlx5/mlx5_defs.h\n@@ -178,15 +178,15 @@\n \t\t\t\t sizeof(struct rte_ipv4_hdr))\n \n /* Size of the simple hash table for metadata register table. */\n-#define MLX5_FLOW_MREG_HTABLE_SZ 4096\n+#define MLX5_FLOW_MREG_HTABLE_SZ 64\n #define MLX5_FLOW_MREG_HNAME \"MARK_COPY_TABLE\"\n #define MLX5_DEFAULT_COPY_ID UINT32_MAX\n \n /* Size of the simple hash table for header modify table. */\n-#define MLX5_FLOW_HDR_MODIFY_HTABLE_SZ (1 << 16)\n+#define MLX5_FLOW_HDR_MODIFY_HTABLE_SZ (1 << 15)\n \n /* Size of the simple hash table for encap decap table. */\n-#define MLX5_FLOW_ENCAP_DECAP_HTABLE_SZ (1 << 16)\n+#define MLX5_FLOW_ENCAP_DECAP_HTABLE_SZ (1 << 12)\n \n /* Hairpin TX/RX queue configuration parameters. */\n #define MLX5_HAIRPIN_QUEUE_STRIDE 6\ndiff --git a/drivers/net/mlx5/mlx5_flow.c b/drivers/net/mlx5/mlx5_flow.c\nindex e6b71a87a0..cb8161f668 100644\n--- a/drivers/net/mlx5/mlx5_flow.c\n+++ b/drivers/net/mlx5/mlx5_flow.c\n@@ -8625,7 +8625,7 @@ mlx5_flow_tunnel_allocate(struct rte_eth_dev *dev,\n \t\tDRV_LOG(ERR, \"Tunnel ID %d exceed max limit.\", id);\n \t\treturn NULL;\n \t}\n-\ttunnel->groups = mlx5_hlist_create(\"tunnel groups\", 1024, false, true,\n+\ttunnel->groups = mlx5_hlist_create(\"tunnel groups\", 64, false, true,\n \t\t\t\t\t priv->sh,\n \t\t\t\t\t mlx5_flow_tunnel_grp2tbl_create_cb,\n \t\t\t\t\t mlx5_flow_tunnel_grp2tbl_match_cb,\n@@ -8734,8 +8734,7 @@ int mlx5_alloc_tunnel_hub(struct mlx5_dev_ctx_shared *sh)\n \t\treturn -ENOMEM;\n \tLIST_INIT(&thub->tunnels);\n \trte_spinlock_init(&thub->sl);\n-\tthub->groups = mlx5_hlist_create(\"flow groups\",\n-\t\t\t\t\t rte_align32pow2(MLX5_MAX_TABLES),\n+\tthub->groups = mlx5_hlist_create(\"flow groups\", 64,\n \t\t\t\t\t false, true, sh,\n \t\t\t\t\t mlx5_flow_tunnel_grp2tbl_create_cb,\n \t\t\t\t\t mlx5_flow_tunnel_grp2tbl_match_cb,\n", "prefixes": [ "v2", "14/22" ] }{ "id": 95068, "url": "