]> www.infradead.org Git - users/dwmw2/linux.git/commit
RDMA/mlx5: Consider the query_vuid cap for data_direct
authorYishai Hadas <yishaih@nvidia.com>
Mon, 9 Sep 2024 18:47:33 +0000 (21:47 +0300)
committerLeon Romanovsky <leon@kernel.org>
Fri, 13 Sep 2024 05:27:40 +0000 (08:27 +0300)
commitc77aec65e828bd82726f664585e3bb425d17be7f
treec11e07ce3638aa76b68f31a953d7d3dafebda15f
parent907936b6f4e630718cc31ddea79cc76a3e32080a
RDMA/mlx5: Consider the query_vuid cap for data_direct

Consider also the query_vuid cap before enabling the data_direct
functionality.

This may prevent a syndrome from the FW in case the query_vuid command
is not supported. (e.g. migratable VF)

Signed-off-by: Yishai Hadas <yishaih@nvidia.com>
Reviewed-by: Gal Shalom <galshalom@nvidia.com>
Link: https://patch.msgid.link/274c4f6f1ac0b1078243dd296695a49dbe58e7d1.1725907637.git.leonro@nvidia.com
Signed-off-by: Leon Romanovsky <leon@kernel.org>
drivers/infiniband/hw/mlx5/main.c