Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

RDMA/core: Move legacy MAD IOCTL declarations to common file

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>

authored by

Leon Romanovsky and committed by
Doug Ledford
06393bc3 843debb8

+11 -10
-10
include/uapi/rdma/ib_user_mad.h
··· 230 230 __u8 reserved[3]; 231 231 }; 232 232 233 - #define IB_USER_MAD_REGISTER_AGENT _IOWR(IB_IOCTL_MAGIC, 1, \ 234 - struct ib_user_mad_reg_req) 235 - 236 - #define IB_USER_MAD_UNREGISTER_AGENT _IOW(IB_IOCTL_MAGIC, 2, __u32) 237 - 238 - #define IB_USER_MAD_ENABLE_PKEY _IO(IB_IOCTL_MAGIC, 3) 239 - 240 - #define IB_USER_MAD_REGISTER_AGENT2 _IOWR(IB_IOCTL_MAGIC, 4, \ 241 - struct ib_user_mad_reg_req2) 242 - 243 233 #endif /* IB_USER_MAD_H */
+11
include/uapi/rdma/rdma_user_ioctl.h
··· 35 35 36 36 #include <linux/types.h> 37 37 #include <linux/ioctl.h> 38 + #include <rdma/ib_user_mad.h> 38 39 39 40 /* Documentation/ioctl/ioctl-number.txt */ 40 41 #define RDMA_IOCTL_MAGIC 0x1b 41 42 #define IB_IOCTL_MAGIC RDMA_IOCTL_MAGIC 43 + 44 + #define IB_USER_MAD_REGISTER_AGENT _IOWR(IB_IOCTL_MAGIC, 1, \ 45 + struct ib_user_mad_reg_req) 46 + 47 + #define IB_USER_MAD_UNREGISTER_AGENT _IOW(IB_IOCTL_MAGIC, 2, __u32) 48 + 49 + #define IB_USER_MAD_ENABLE_PKEY _IO(IB_IOCTL_MAGIC, 3) 50 + 51 + #define IB_USER_MAD_REGISTER_AGENT2 _IOWR(IB_IOCTL_MAGIC, 4, \ 52 + struct ib_user_mad_reg_req2) 42 53 43 54 #endif /* RDMA_USER_IOCTL_H */