common/mlx5: split PCI relaxed ordering for read and write
authorTal Shnaiderman <talshn@nvidia.com>
Tue, 3 Nov 2020 08:51:22 +0000 (10:51 +0200)
committerThomas Monjalon <thomas@monjalon.net>
Wed, 4 Nov 2020 18:16:24 +0000 (19:16 +0100)
commite82ddd28e3e35abdb1573dab11d269ac1449291f
tree1f2d9b5c78d4c43b19e3a5e044e750d64ca66a19
parent1e4593db1d58e01c29d79259f5d98148e635963e
common/mlx5: split PCI relaxed ordering for read and write

The current DevX implementation of the relaxed ordering feature is
enabling relaxed ordering usage only if both relaxed ordering read AND
write are supported.  In that case both relaxed ordering read and write
are activated.

This commit will optimize the usage of relaxed ordering by enabling it
when the read OR write features are supported.  Each relaxed ordering
type will be activated according to its own capability bit.

This will align the DevX flow with the verbs implementation of
ibv_reg_mr when using the flag IBV_ACCESS_RELAXED_ORDERING

Fixes: 53ac93f71ad1 ("net/mlx5: create relaxed ordering memory regions")
Cc: stable@dpdk.org
Signed-off-by: Tal Shnaiderman <talshn@nvidia.com>
Acked-by: Matan Azrad <matan@nvidia.com>
drivers/common/mlx5/mlx5_devx_cmds.c
drivers/common/mlx5/mlx5_devx_cmds.h
drivers/net/mlx5/linux/mlx5_os.c
drivers/net/mlx5/mlx5.h
drivers/net/mlx5/mlx5_flow.c
drivers/net/mlx5/mlx5_flow_age.c
drivers/vdpa/mlx5/mlx5_vdpa_lm.c
drivers/vdpa/mlx5/mlx5_vdpa_mem.c