hc
2023-12-08 01573e231f18eb2d99162747186f59511f56b64d
kernel/include/uapi/rdma/rdma_user_rxe.h
....@@ -39,6 +39,11 @@
3939 #include <linux/in.h>
4040 #include <linux/in6.h>
4141
42
+enum {
43
+ RXE_NETWORK_TYPE_IPV4 = 1,
44
+ RXE_NETWORK_TYPE_IPV6 = 2,
45
+};
46
+
4247 union rxe_gid {
4348 __u8 raw[16];
4449 struct {
....@@ -57,9 +62,9 @@
5762
5863 struct rxe_av {
5964 __u8 port_num;
65
+ /* From RXE_NETWORK_TYPE_* */
6066 __u8 network_type;
61
- __u16 reserved1;
62
- __u32 reserved2;
67
+ __u8 dmac[6];
6368 struct rxe_global_route grh;
6469 union {
6570 struct sockaddr_in _sockaddr_in;
....@@ -100,8 +105,8 @@
100105 struct ib_mr *mr;
101106 __aligned_u64 reserved;
102107 };
103
- __u32 key;
104
- __u32 access;
108
+ __u32 key;
109
+ __u32 access;
105110 } reg;
106111 } wr;
107112 };
....@@ -113,7 +118,7 @@
113118 };
114119
115120 struct mminfo {
116
- __aligned_u64 offset;
121
+ __aligned_u64 offset;
117122 __u32 size;
118123 __u32 pad;
119124 };