common/mlx5: fix umem buffer alignment
authorDekel Peled <dekelp@mellanox.com>
Mon, 11 May 2020 10:02:45 +0000 (13:02 +0300)
committerFerruh Yigit <ferruh.yigit@intel.com>
Mon, 18 May 2020 18:35:56 +0000 (20:35 +0200)
commit4240b11e7b32e5b5ca23eb81fbcd6ac5c967248c
tree6580f33ed22587af36b2ebb1a52104dbd3dc00d1
parentd237d22fbe62c9e62d3fb050dbd2259387fe19b3
common/mlx5: fix umem buffer alignment

The value MLX5_WQE_BUF_ALIGNMENT is defined as 512.
In some cases this alignment size is not adequate, which results in
memory registration that is not accepted by FW.
The result error can be "page_offset is not aligned to page_size/64,
bad umem_offset" (syndrome 0x357275).

This patch updates the definition to match the running system.

Fixes: 18a68e046b51 ("net/mlx5: fix DevX Rx queue memory alignment")
Cc: stable@dpdk.org
Signed-off-by: Dekel Peled <dekelp@mellanox.com>
Acked-by: Matan Azrad <matan@mellanox.com>
drivers/common/mlx5/mlx5_prm.h