Gregory Etelson 5c76123810 net/mlx5: fix flow memory allocation size
In DV enabled MLX5 PMD build mlx5_ipool_cfg[MLX5_IPOOL_MLX5_FLOW].size
was initiated for DV structure. If RTE initialization encountered MLX5
PCI function with disabled DV support
mlx5_ipool_cfg[MLX5_IPOOL_MLX5_FLOW].size was reduced to match legacy
verbs flow size.  Since mlx5_ipool_cfg[MLX5_IPOOL_MLX5_FLOW] is a
global variable that change reflected on DV enabled MLX5 PCI functions
too.

Running flow with invalid ipool size crashes PMD.

The patch adjusts ipool flow size for each active PCI function.

Fixes: b88341ca35fc ("net/mlx5: convert flow dev handle to indexed")
Cc: stable@dpdk.org

Signed-off-by: Gregory Etelson <getelson@mellanox.com>
Acked-by: Matan Azrad <matan@mellanox.com>
2020-06-16 19:21:07 +02:00
..
2020-02-14 12:42:12 +01:00
2020-04-16 18:16:46 +02:00
2020-04-16 18:16:46 +02:00
2020-05-28 17:57:07 +02:00
2020-04-16 18:30:58 +02:00
2020-04-25 19:53:47 +02:00
2020-05-19 15:49:53 +02:00
2020-05-19 15:49:53 +02:00
2020-04-16 18:30:58 +02:00
2020-04-16 18:30:58 +02:00
2020-06-05 13:10:19 +02:00
2020-05-28 17:57:07 +02:00
2020-06-02 12:46:44 +02:00
2020-05-18 20:35:57 +02:00
2020-04-21 13:57:08 +02:00
2020-05-21 15:41:48 +02:00
2020-04-21 13:57:07 +02:00
2020-04-25 19:53:47 +02:00
2020-05-11 22:27:39 +02:00
2020-04-21 13:57:07 +02:00
2020-04-21 13:57:07 +02:00