[dpdk-dev] [PATCH 1/2] net/mlx5: fix incorrect indexed pool configurations

Suanming Mou suanmingm at mellanox.com
Mon Apr 20 04:34:35 CEST 2020


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 <suanmingm at mellanox.com>
---
 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



More information about the dev mailing list