]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
RDMA/core: Move legacy MAD IOCTL declarations to common file
authorLeon Romanovsky <leonro@mellanox.com>
Sun, 4 Sep 2016 11:30:31 +0000 (14:30 +0300)
committerDoug Ledford <dledford@redhat.com>
Tue, 10 Jan 2017 17:41:40 +0000 (12:41 -0500)
Move legacy MAD IOCTL declarations to rdma_user_ioctl.h file.

Signed-off-by: Matan Barak <matanb@mellanox.com>
Signed-off-by: Haggai Eran <haggaie@mellanox.com>
Signed-off-by: Leon Romanovsky <leonro@mellanox.com>
Reviewed-by: Jason Gunthorpe <jgunthorpe@obsidianresearch.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
include/uapi/rdma/ib_user_mad.h
include/uapi/rdma/rdma_user_ioctl.h

index 9de7a2b273d7f432221124b4d2d82d80afd80af6..5c7abd859e0fda81f677fd6906dea7fb21e048cc 100644 (file)
@@ -230,14 +230,4 @@ struct ib_user_mad_reg_req2 {
        __u8    reserved[3];
 };
 
-#define IB_USER_MAD_REGISTER_AGENT     _IOWR(IB_IOCTL_MAGIC, 1, \
-                                             struct ib_user_mad_reg_req)
-
-#define IB_USER_MAD_UNREGISTER_AGENT   _IOW(IB_IOCTL_MAGIC, 2, __u32)
-
-#define IB_USER_MAD_ENABLE_PKEY                _IO(IB_IOCTL_MAGIC, 3)
-
-#define IB_USER_MAD_REGISTER_AGENT2     _IOWR(IB_IOCTL_MAGIC, 4, \
-                                             struct ib_user_mad_reg_req2)
-
 #endif /* IB_USER_MAD_H */
index ba1bcdd7178dc741a6ceafa8b114d475e7767fe9..820bf348560840f7b21d0d107c60d7dabf36e597 100644 (file)
 
 #include <linux/types.h>
 #include <linux/ioctl.h>
+#include <rdma/ib_user_mad.h>
 
 /* Documentation/ioctl/ioctl-number.txt */
 #define RDMA_IOCTL_MAGIC               0x1b
 #define IB_IOCTL_MAGIC                 RDMA_IOCTL_MAGIC
 
+#define IB_USER_MAD_REGISTER_AGENT     _IOWR(IB_IOCTL_MAGIC, 1, \
+                                             struct ib_user_mad_reg_req)
+
+#define IB_USER_MAD_UNREGISTER_AGENT   _IOW(IB_IOCTL_MAGIC, 2, __u32)
+
+#define IB_USER_MAD_ENABLE_PKEY                _IO(IB_IOCTL_MAGIC, 3)
+
+#define IB_USER_MAD_REGISTER_AGENT2     _IOWR(IB_IOCTL_MAGIC, 4, \
+                                             struct ib_user_mad_reg_req2)
+
 #endif /* RDMA_USER_IOCTL_H */