summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorDragos Tatulea <dtatulea@nvidia.com>2026-09-30 14:42:20 +0300
committerLeon Romanovsky <leon@kernel.org>2026-10-01 11:40:42 -0400
commitebbb9f87689998157e7310e96f585bc293f6fcb0 (patch)
treea1b4d36a09000f064cf5d0aafa56af2b90781136 /include
parent2365f8d7f609cff766b150028372bc28d8b436f7 (diff)
downloadlinux-next-ebbb9f87689998157e7310e96f585bc293f6fcb0.tar.gz
linux-next-ebbb9f87689998157e7310e96f585bc293f6fcb0.zip
RDMA/mlx5: Make the data direct VUID query self-contained
mlx5_cmd_query_vuid() in cmd.c is generic over the data_direct flag but its only caller is the data direct init path, which always passes data_direct=true. Move it into data_direct.c as mlx5_data_direct_query_vuid(), dropping the always-true parameter and hardcoding data_direct=1. This groups the query with the rest of the data direct code so that it travels together when the data direct matching code is relocated to mlx5_core, and lets it become static there once the query is folded into the core bind path. This function will become private in a subsequent patch. No functional change. Signed-off-by: Dragos Tatulea <dtatulea@nvidia.com> Reviewed-by: Leon Romanovsky <leonro@nvidia.com> Reviewed-by: Cosmin Ratiu <cratiu@nvidia.com> Signed-off-by: Tariq Toukan <tariqt@nvidia.com> Link: https://patch.msgid.link/20260930114227.139274-4-tariqt@nvidia.com Signed-off-by: Leon Romanovsky <leon@kernel.org>
Diffstat (limited to 'include')
-rw-r--r--include/linux/mlx5/data_direct.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/include/linux/mlx5/data_direct.h b/include/linux/mlx5/data_direct.h
new file mode 100644
index 000000000000..4556e58c6d03
--- /dev/null
+++ b/include/linux/mlx5/data_direct.h
@@ -0,0 +1,13 @@
+/* SPDX-License-Identifier: GPL-2.0 OR Linux-OpenIB */
+/*
+ * Copyright (c) 2026, NVIDIA CORPORATION & AFFILIATES. All rights reserved
+ */
+
+#ifndef _MLX5_DATA_DIRECT_H
+#define _MLX5_DATA_DIRECT_H
+
+struct mlx5_core_dev;
+
+int mlx5_data_direct_query_vuid(struct mlx5_core_dev *dev, char *out_vuid);
+
+#endif