[PATCH 1/8] nvme-rdma: move NVME_RDMA_IP_PORT from common file

Max Gurtovoy
2024-01-04T09:26:17Z

The correct place for this definition is the nvme rdma header file and
not the common nvme header file.

Reviewed-by: Israel Rukshin <israelr@nvidia.com>
Reviewed-by: Sagi Grimberg <sagi@grimberg.me>
Signed-off-by: Max Gurtovoy <mgurtovoy@nvidia.com>
---
include/linux/nvme-rdma.h | 2 ++
include/linux/nvme.h | 2 --
2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/include/linux/nvme-rdma.h b/include/linux/nvme-rdma.h
index 4dd7e6fe92fb..146dd2223a5f 100644
--- a/include/linux/nvme-rdma.h
+++ b/include/linux/nvme-rdma.h
@@ -6,6 +6,8 @@
#ifndef _LINUX_NVME_RDMA_H
#define _LINUX_NVME_RDMA_H

+#define NVME_RDMA_IP_PORT 4420
+
#define NVME_RDMA_MAX_QUEUE_SIZE 128

enum nvme_rdma_cm_fmt {
diff --git a/include/linux/nvme.h b/include/linux/nvme.h
index 462c21e0e417..ee28acdb8d43 100644
--- a/include/linux/nvme.h
+++ b/include/linux/nvme.h
@@ -23,8 +23,6 @@

#define NVME_DISC_SUBSYS_NAME "nqn.2014-08.org.nvmexpress.discovery"

-#define NVME_RDMA_IP_PORT 4420
-
#define NVME_NSID_ALL 0xffffffff

enum nvme_subsys_type {
--
2.18.1