net/mlx5: Update relaxed ordering read HCA capabilities
authorAvihai Horon <avihaih@nvidia.com>
Mon, 10 Apr 2023 13:07:52 +0000 (16:07 +0300)
committerLeon Romanovsky <leon@kernel.org>
Sun, 16 Apr 2023 10:29:19 +0000 (13:29 +0300)
commitccbbfe0682f2fff1e157413c30092dd27c50e20e
tree3b501826f1e7173d2c366ad6228dc27a287f4c2b
parentd43b020b0f82c088ef8ff3196ef00575a97d200e
net/mlx5: Update relaxed ordering read HCA capabilities

Rename existing HCA capability relaxed_ordering_read to
relaxed_ordering_read_pci_enabled. This is in accordance with recent PRM
change to better describe the capability, as it's set only if both the
device supports relaxed ordering (RO) read and RO is enabled in PCI
config space.

In addition, add new HCA capability relaxed_ordering_read which is set
if the device supports RO read, regardless of RO in PCI config space.
This will be used in the following patch to allow RO in VFs and VMs.

Signed-off-by: Avihai Horon <avihaih@nvidia.com>
Reviewed-by: Shay Drory <shayd@nvidia.com>
Link: https://lore.kernel.org/r/caa0002fd8135086357dfcc368e2f5cc73b08480.1681131553.git.leon@kernel.org
Reviewed-by: Jacob Keller <jacob.e.keller@intel.com>
Signed-off-by: Leon Romanovsky <leon@kernel.org>
drivers/infiniband/hw/mlx5/mr.c
drivers/infiniband/hw/mlx5/umr.h
drivers/net/ethernet/mellanox/mlx5/core/en_common.c
include/linux/mlx5/mlx5_ifc.h