From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 59A26A0561; Mon, 20 Apr 2020 04:34:51 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 4EE321C20E; Mon, 20 Apr 2020 04:34:45 +0200 (CEST) Received: from git-send-mailer.rdmz.labs.mlnx (unknown [37.142.13.130]) by dpdk.org (Postfix) with ESMTP id 506861C205 for ; Mon, 20 Apr 2020 04:34:43 +0200 (CEST) From: Suanming Mou To: viacheslavo@mellanox.com, matan@mellanox.com Cc: rasland@mellanox.com, dev@dpdk.org Date: Mon, 20 Apr 2020 10:34:35 +0800 Message-Id: <1587350076-58468-2-git-send-email-suanmingm@mellanox.com> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1587350076-58468-1-git-send-email-suanmingm@mellanox.com> References: <1587350076-58468-1-git-send-email-suanmingm@mellanox.com> Subject: [dpdk-dev] [PATCH 1/2] net/mlx5: fix incorrect indexed pool configurations X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" The indexed pool configurations of mark reg copy and hrxq are incorrect. The incorrect pool trunk size which assigned the meter struct size to mark reg copy pool will caused wrong memory entry allocated. The incorrect pool type makes the hrxq pool seems be confusing. Fixes: a339b088298d ("net/mlx5: convert hrxq to indexed") Fixes: 6cb8de0a5ad0 ("net/mlx5: convert mark copy resource to indexed") Signed-off-by: Suanming Mou --- drivers/net/mlx5/mlx5.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/net/mlx5/mlx5.c b/drivers/net/mlx5/mlx5.c index a83791c..cc13e44 100644 --- a/drivers/net/mlx5/mlx5.c +++ b/drivers/net/mlx5/mlx5.c @@ -268,7 +268,7 @@ struct mlx5_dev_spawn_data { .type = "mlx5_meter_ipool", }, { - .size = sizeof(struct mlx5_flow_meter), + .size = sizeof(struct mlx5_flow_mreg_copy_resource), .trunk_size = 64, .grow_trunk = 3, .grow_shift = 2, @@ -287,7 +287,7 @@ struct mlx5_dev_spawn_data { .release_mem_en = 1, .malloc = rte_malloc_socket, .free = rte_free, - .type = "mlx5_jump_ipool", + .type = "mlx5_hrxq_ipool", }, { .size = sizeof(struct mlx5_flow_handle), -- 1.8.3.1