RDMA/mlx5: Add DMAH object support
authorYishai Hadas <yishaih@nvidia.com>
Thu, 17 Jul 2025 12:17:30 +0000 (15:17 +0300)
committerLeon Romanovsky <leon@kernel.org>
Wed, 23 Jul 2025 05:42:10 +0000 (01:42 -0400)
commit3c819070754c3e81ad7be07e77fad83a658022f7
treee5a86b4bd774f5a1a654c580a96c56cdc2846a63
parentd83edab562a496a42720902a1d2effccd05c37c5
RDMA/mlx5: Add DMAH object support

This patch introduces support for allocating and deallocating the DMAH
object.

Further details:
----------------
The DMAH API is exposed to upper layers only if the underlying device
supports TPH.

It uses the mlx5_core steering tag (ST) APIs to get a steering tag index
based on the provided input.

The obtained index is stored in the device-specific mlx5_dmah structure
for future use.

Upcoming patches in the series will integrate the allocated DMAH into
the memory region (MR) registration process.

Signed-off-by: Yishai Hadas <yishaih@nvidia.com>
Reviewed-by: Edward Srouji <edwards@nvidia.com>
Link: https://patch.msgid.link/778550776799d82edb4d05da249a1cff00160b50.1752752567.git.leon@kernel.org
Signed-off-by: Leon Romanovsky <leon@kernel.org>
drivers/infiniband/hw/mlx5/Makefile
drivers/infiniband/hw/mlx5/dmah.c [new file with mode: 0644]
drivers/infiniband/hw/mlx5/dmah.h [new file with mode: 0644]
drivers/infiniband/hw/mlx5/main.c