[1/2] net/mlx5: fix incorrect indexed pool configurations

Message ID 1587350076-58468-2-git-send-email-suanmingm@mellanox.com (mailing list archive)
State Accepted, archived
Delegated to: Raslan Darawsheh
Headers
Series net/mlx5: fix indexed pool bugs |

Checks

Context Check Description
ci/checkpatch success coding style OK
ci/iol-intel-Performance success Performance Testing PASS
ci/iol-nxp-Performance success Performance Testing PASS
ci/iol-mellanox-Performance success Performance Testing PASS
ci/iol-testing fail Testing issues
ci/Intel-compilation fail apply issues

Commit Message

Suanming Mou April 20, 2020, 2:34 a.m. UTC
  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(-)
  

Patch

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),