blob: 73967b48ef72fdb6df58e1285b44bd016fc349c8 [file] [log] [blame]
Elliott Hughes180edef2023-11-02 00:08:05 +00001/*
2 * This file is auto-generated. Modifications will be lost.
3 *
4 * See https://android.googlesource.com/platform/bionic/+/master/libc/kernel/
5 * for more information.
6 */
Christopher Ferris8b7fdc92023-02-21 13:36:32 -08007#ifndef MANA_ABI_USER_H
8#define MANA_ABI_USER_H
9#include <linux/types.h>
10#include <rdma/ib_user_ioctl_verbs.h>
11#define MANA_IB_UVERBS_ABI_VERSION 1
12struct mana_ib_create_cq {
13 __aligned_u64 buf_addr;
14};
15struct mana_ib_create_qp {
16 __aligned_u64 sq_buf_addr;
17 __u32 sq_buf_size;
18 __u32 port;
19};
20struct mana_ib_create_qp_resp {
21 __u32 sqid;
22 __u32 cqid;
23 __u32 tx_vp_offset;
24 __u32 reserved;
25};
26struct mana_ib_create_wq {
27 __aligned_u64 wq_buf_addr;
28 __u32 wq_buf_size;
29 __u32 reserved;
30};
31enum mana_ib_rx_hash_function_flags {
32 MANA_IB_RX_HASH_FUNC_TOEPLITZ = 1 << 0,
33};
34struct mana_ib_create_qp_rss {
35 __aligned_u64 rx_hash_fields_mask;
36 __u8 rx_hash_function;
37 __u8 reserved[7];
38 __u32 rx_hash_key_len;
39 __u8 rx_hash_key[40];
40 __u32 port;
41};
42struct rss_resp_entry {
43 __u32 cqid;
44 __u32 wqid;
45};
46struct mana_ib_create_qp_rss_resp {
47 __aligned_u64 num_entries;
48 struct rss_resp_entry entries[64];
49};
50#endif