rdma_user_rxe.h revision 49f525c47bd383cd6a87db8f067cddb3ab620d17
1/****************************************************************************
2 ****************************************************************************
3 ***
4 ***   This header was automatically generated from a Linux kernel header
5 ***   of the same name, to make information necessary for userspace to
6 ***   call into the kernel available to libc.  It contains only constants,
7 ***   structures, and macros generated from the original header, and thus,
8 ***   contains no copyrightable information.
9 ***
10 ***   To edit the content of this header, modify the corresponding
11 ***   source file (e.g. under external/kernel-headers/original/) then
12 ***   run bionic/libc/kernel/tools/update_all.py
13 ***
14 ***   Any manual change here will be lost the next time this script will
15 ***   be run. You've been warned!
16 ***
17 ****************************************************************************
18 ****************************************************************************/
19#ifndef RDMA_USER_RXE_H
20#define RDMA_USER_RXE_H
21#include <linux/types.h>
22union rxe_gid {
23/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
24  __u8 raw[16];
25  struct {
26    __be64 subnet_prefix;
27    __be64 interface_id;
28/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
29  } global;
30};
31struct rxe_global_route {
32  union rxe_gid dgid;
33/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
34  __u32 flow_label;
35  __u8 sgid_index;
36  __u8 hop_limit;
37  __u8 traffic_class;
38/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
39};
40struct rxe_av {
41  __u8 port_num;
42  __u8 network_type;
43/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
44  struct rxe_global_route grh;
45  union {
46    struct sockaddr _sockaddr;
47    struct sockaddr_in _sockaddr_in;
48/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
49    struct sockaddr_in6 _sockaddr_in6;
50  } sgid_addr, dgid_addr;
51};
52struct rxe_send_wr {
53/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
54  __u64 wr_id;
55  __u32 num_sge;
56  __u32 opcode;
57  __u32 send_flags;
58/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
59  union {
60    __be32 imm_data;
61    __u32 invalidate_rkey;
62  } ex;
63/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
64  union {
65    struct {
66      __u64 remote_addr;
67      __u32 rkey;
68/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
69    } rdma;
70    struct {
71      __u64 remote_addr;
72      __u64 compare_add;
73/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
74      __u64 swap;
75      __u32 rkey;
76    } atomic;
77    struct {
78/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
79      __u32 remote_qpn;
80      __u32 remote_qkey;
81      __u16 pkey_index;
82    } ud;
83/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
84    struct {
85      struct ib_mr * mr;
86      __u32 key;
87      int access;
88/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
89    } reg;
90  } wr;
91};
92struct rxe_sge {
93/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
94  __u64 addr;
95  __u32 length;
96  __u32 lkey;
97};
98/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
99struct mminfo {
100  __u64 offset;
101  __u32 size;
102  __u32 pad;
103/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
104};
105struct rxe_dma_info {
106  __u32 length;
107  __u32 resid;
108/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
109  __u32 cur_sge;
110  __u32 num_sge;
111  __u32 sge_offset;
112  union {
113/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
114    __u8 inline_data[0];
115    struct rxe_sge sge[0];
116  };
117};
118/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
119struct rxe_send_wqe {
120  struct rxe_send_wr wr;
121  struct rxe_av av;
122  __u32 status;
123/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
124  __u32 state;
125  __u64 iova;
126  __u32 mask;
127  __u32 first_psn;
128/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
129  __u32 last_psn;
130  __u32 ack_length;
131  __u32 ssn;
132  __u32 has_rd_atomic;
133/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
134  struct rxe_dma_info dma;
135};
136struct rxe_recv_wqe {
137  __u64 wr_id;
138/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
139  __u32 num_sge;
140  __u32 padding;
141  struct rxe_dma_info dma;
142};
143/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
144#endif
145