common/mlx5: share UAR allocation routine
authorViacheslav Ovsiienko <viacheslavo@nvidia.com>
Tue, 10 Nov 2020 16:04:16 +0000 (16:04 +0000)
committerThomas Monjalon <thomas@monjalon.net>
Sat, 14 Nov 2020 09:56:30 +0000 (10:56 +0100)
commit9cc0e99c81ab01f5afb4959a0fb43c4404bc2414
tree9616f7b598b5b897c7ef72376effff17354ce1c4
parentb0dcd610529487ed6661351a735a35af5d03a222
common/mlx5: share UAR allocation routine

This patch introduces the routine to allocate the UAR (User
Access Region) with various memory mapping types. The origin
patch being fixed provided the UAR allocation workaround
for the mlx5 net PMD only. As it was found the other mlx5
based drivers - vdpa and regex are affected by the issue
as well and must be fixed.

Fixes: a0bfe9d56f74 ("net/mlx5: fix UAR memory mapping type")
Cc: stable@dpdk.org
Signed-off-by: Viacheslav Ovsiienko <viacheslavo@nvidia.com>
Acked-by: Matan Azrad <matan@nvidia.com>
drivers/common/mlx5/mlx5_common.c
drivers/common/mlx5/mlx5_common.h
drivers/common/mlx5/mlx5_devx_cmds.h
drivers/common/mlx5/version.map
drivers/net/mlx5/mlx5_defs.h