hc
2023-12-09 b22da3d8526a935aa31e086e63f60ff3246cb61c
kernel/include/uapi/rdma/rdma_user_ioctl_cmds.h
....@@ -36,7 +36,7 @@
3636 #include <linux/types.h>
3737 #include <linux/ioctl.h>
3838
39
-/* Documentation/ioctl/ioctl-number.txt */
39
+/* Documentation/userspace-api/ioctl/ioctl-number.rst */
4040 #define RDMA_IOCTL_MAGIC 0x1b
4141 #define RDMA_VERBS_IOCTL \
4242 _IOWR(RDMA_IOCTL_MAGIC, 1, struct ib_uverbs_ioctl_hdr)
....@@ -53,7 +53,7 @@
5353
5454 struct ib_uverbs_attr {
5555 __u16 attr_id; /* command specific type attribute */
56
- __u16 len; /* only for pointers */
56
+ __u16 len; /* only for pointers and IDRs array */
5757 __u16 flags; /* combination of UVERBS_ATTR_F_XXXX */
5858 union {
5959 struct {
....@@ -63,7 +63,10 @@
6363 __u16 reserved;
6464 } attr_data;
6565 union {
66
- /* Used by PTR_IN/OUT, ENUM_IN and IDR */
66
+ /*
67
+ * ptr to command, inline data, idr/fd or
68
+ * ptr to __u32 array of IDRs
69
+ */
6770 __aligned_u64 data;
6871 /* Used by FD_IN and FD_OUT */
6972 __s64 data_s64;
....@@ -79,26 +82,6 @@
7982 __u32 driver_id;
8083 __u32 reserved2;
8184 struct ib_uverbs_attr attrs[0];
82
-};
83
-
84
-enum rdma_driver_id {
85
- RDMA_DRIVER_UNKNOWN,
86
- RDMA_DRIVER_MLX5,
87
- RDMA_DRIVER_MLX4,
88
- RDMA_DRIVER_CXGB3,
89
- RDMA_DRIVER_CXGB4,
90
- RDMA_DRIVER_MTHCA,
91
- RDMA_DRIVER_BNXT_RE,
92
- RDMA_DRIVER_OCRDMA,
93
- RDMA_DRIVER_NES,
94
- RDMA_DRIVER_I40IW,
95
- RDMA_DRIVER_VMW_PVRDMA,
96
- RDMA_DRIVER_QEDR,
97
- RDMA_DRIVER_HNS,
98
- RDMA_DRIVER_USNIC,
99
- RDMA_DRIVER_RXE,
100
- RDMA_DRIVER_HFI1,
101
- RDMA_DRIVER_QIB,
10285 };
10386
10487 #endif