1 /* SPDX-License-Identifier: (GPL-2.0 WITH Linux-syscall-note) */
3 * Copyright (c) 2022, Microsoft Corporation. All rights reserved.
6 #ifndef MANA_ABI_USER_H
7 #define MANA_ABI_USER_H
9 #include <linux/types.h>
10 #include <rdma/ib_user_ioctl_verbs.h>
13 * Increment this value if any changes that break userspace ABI
14 * compatibility are made.
17 #define MANA_IB_UVERBS_ABI_VERSION 1
19 enum mana_ib_create_cq_flags {
20 MANA_IB_CREATE_RNIC_CQ = 1 << 0,
23 struct mana_ib_create_cq {
24 __aligned_u64 buf_addr;
30 struct mana_ib_create_cq_resp {
35 struct mana_ib_create_qp {
36 __aligned_u64 sq_buf_addr;
41 struct mana_ib_create_qp_resp {
48 struct mana_ib_create_wq {
49 __aligned_u64 wq_buf_addr;
54 /* RX Hash function flags */
55 enum mana_ib_rx_hash_function_flags {
56 MANA_IB_RX_HASH_FUNC_TOEPLITZ = 1 << 0,
59 struct mana_ib_create_qp_rss {
60 __aligned_u64 rx_hash_fields_mask;
61 __u8 rx_hash_function;
63 __u32 rx_hash_key_len;
68 struct rss_resp_entry {
73 struct mana_ib_create_qp_rss_resp {
74 __aligned_u64 num_entries;
75 struct rss_resp_entry entries[64];