[1/2] net/mlx5: fix incorrect indexed pool configurations
Checks
Commit Message
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@mellanox.com>
---
drivers/net/mlx5/mlx5.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
@@ -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),