This patchset will move all the mlx5 Tx queues memory to a consecutive memory area. All the WQEBBs will be allocated based on the offset of this memory area.
--- v2: 1. add a new fix for legacy code of WQE calculation 2. fix the style v3: 1. change the devarg and add description. 2. reorganize the code with different commits order. --- Bing Zhao (5): net/mlx5: add new devarg for Tx queue consecutive memory net/mlx5: calculate the memory length for all Tx queues net/mlx5: allocate and release unique resources for Tx queues net/mlx5: pass the information in Tx queue start net/mlx5: use consecutive memory for Tx queue creation doc/guides/nics/mlx5.rst | 18 +++ drivers/common/mlx5/mlx5_common_devx.c | 160 ++++++++++++++++-------- drivers/common/mlx5/mlx5_common_devx.h | 2 + drivers/common/mlx5/mlx5_devx_cmds.h | 10 ++ drivers/net/mlx5/mlx5.c | 36 ++++++ drivers/net/mlx5/mlx5.h | 15 ++- drivers/net/mlx5/mlx5_devx.c | 32 ++++- drivers/net/mlx5/mlx5_trigger.c | 166 +++++++++++++++++++------ drivers/net/mlx5/mlx5_tx.h | 2 + drivers/net/mlx5/mlx5_txq.c | 69 +++++++++- 10 files changed, 412 insertions(+), 98 deletions(-) -- 2.34.1