Skip to content

Commit 06393bc

Browse files
Leon Romanovskydledford
authored andcommitted
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>
1 parent 843debb commit 06393bc

2 files changed

Lines changed: 11 additions & 10 deletions

File tree

‎include/uapi/rdma/ib_user_mad.h‎

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -230,14 +230,4 @@ struct ib_user_mad_reg_req2 {
230230
__u8 reserved[3];
231231
};
232232

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-
243233
#endif /* IB_USER_MAD_H */

‎include/uapi/rdma/rdma_user_ioctl.h‎

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,20 @@
3535

3636
#include <linux/types.h>
3737
#include <linux/ioctl.h>
38+
#include <rdma/ib_user_mad.h>
3839

3940
/* Documentation/ioctl/ioctl-number.txt */
4041
#define RDMA_IOCTL_MAGIC 0x1b
4142
#define IB_IOCTL_MAGIC RDMA_IOCTL_MAGIC
4243

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)
53+
4354
#endif /* RDMA_USER_IOCTL_H */

0 commit comments

Comments
 (0)