~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

TOMOYO Linux Cross Reference
Linux/include/uapi/rdma/mana-abi.h

Version: ~ [ linux-6.12-rc7 ] ~ [ linux-6.11.7 ] ~ [ linux-6.10.14 ] ~ [ linux-6.9.12 ] ~ [ linux-6.8.12 ] ~ [ linux-6.7.12 ] ~ [ linux-6.6.60 ] ~ [ linux-6.5.13 ] ~ [ linux-6.4.16 ] ~ [ linux-6.3.13 ] ~ [ linux-6.2.16 ] ~ [ linux-6.1.116 ] ~ [ linux-6.0.19 ] ~ [ linux-5.19.17 ] ~ [ linux-5.18.19 ] ~ [ linux-5.17.15 ] ~ [ linux-5.16.20 ] ~ [ linux-5.15.171 ] ~ [ linux-5.14.21 ] ~ [ linux-5.13.19 ] ~ [ linux-5.12.19 ] ~ [ linux-5.11.22 ] ~ [ linux-5.10.229 ] ~ [ linux-5.9.16 ] ~ [ linux-5.8.18 ] ~ [ linux-5.7.19 ] ~ [ linux-5.6.19 ] ~ [ linux-5.5.19 ] ~ [ linux-5.4.285 ] ~ [ linux-5.3.18 ] ~ [ linux-5.2.21 ] ~ [ linux-5.1.21 ] ~ [ linux-5.0.21 ] ~ [ linux-4.20.17 ] ~ [ linux-4.19.323 ] ~ [ linux-4.18.20 ] ~ [ linux-4.17.19 ] ~ [ linux-4.16.18 ] ~ [ linux-4.15.18 ] ~ [ linux-4.14.336 ] ~ [ linux-4.13.16 ] ~ [ linux-4.12.14 ] ~ [ linux-4.11.12 ] ~ [ linux-4.10.17 ] ~ [ linux-4.9.337 ] ~ [ linux-4.4.302 ] ~ [ linux-3.10.108 ] ~ [ linux-2.6.32.71 ] ~ [ linux-2.6.0 ] ~ [ linux-2.4.37.11 ] ~ [ unix-v6-master ] ~ [ ccs-tools-1.8.12 ] ~ [ policy-sample ] ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

  1 /* SPDX-License-Identifier: (GPL-2.0 WITH Linux-syscall-note) */
  2 /*
  3  * Copyright (c) 2022, Microsoft Corporation. All rights reserved.
  4  */
  5 
  6 #ifndef MANA_ABI_USER_H
  7 #define MANA_ABI_USER_H
  8 
  9 #include <linux/types.h>
 10 #include <rdma/ib_user_ioctl_verbs.h>
 11 
 12 /*
 13  * Increment this value if any changes that break userspace ABI
 14  * compatibility are made.
 15  */
 16 
 17 #define MANA_IB_UVERBS_ABI_VERSION 1
 18 
 19 enum mana_ib_create_cq_flags {
 20         MANA_IB_CREATE_RNIC_CQ  = 1 << 0,
 21 };
 22 
 23 struct mana_ib_create_cq {
 24         __aligned_u64 buf_addr;
 25         __u16   flags;
 26         __u16   reserved0;
 27         __u32   reserved1;
 28 };
 29 
 30 struct mana_ib_create_cq_resp {
 31         __u32 cqid;
 32         __u32 reserved;
 33 };
 34 
 35 struct mana_ib_create_qp {
 36         __aligned_u64 sq_buf_addr;
 37         __u32 sq_buf_size;
 38         __u32 port;
 39 };
 40 
 41 struct mana_ib_create_qp_resp {
 42         __u32 sqid;
 43         __u32 cqid;
 44         __u32 tx_vp_offset;
 45         __u32 reserved;
 46 };
 47 
 48 struct mana_ib_create_rc_qp {
 49         __aligned_u64 queue_buf[4];
 50         __u32 queue_size[4];
 51 };
 52 
 53 struct mana_ib_create_rc_qp_resp {
 54         __u32 queue_id[4];
 55 };
 56 
 57 struct mana_ib_create_wq {
 58         __aligned_u64 wq_buf_addr;
 59         __u32 wq_buf_size;
 60         __u32 reserved;
 61 };
 62 
 63 /* RX Hash function flags */
 64 enum mana_ib_rx_hash_function_flags {
 65         MANA_IB_RX_HASH_FUNC_TOEPLITZ = 1 << 0,
 66 };
 67 
 68 struct mana_ib_create_qp_rss {
 69         __aligned_u64 rx_hash_fields_mask;
 70         __u8 rx_hash_function;
 71         __u8 reserved[7];
 72         __u32 rx_hash_key_len;
 73         __u8 rx_hash_key[40];
 74         __u32 port;
 75 };
 76 
 77 struct rss_resp_entry {
 78         __u32 cqid;
 79         __u32 wqid;
 80 };
 81 
 82 struct mana_ib_create_qp_rss_resp {
 83         __aligned_u64 num_entries;
 84         struct rss_resp_entry entries[64];
 85 };
 86 
 87 #endif
 88 

~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

kernel.org | git.kernel.org | LWN.net | Project Home | SVN repository | Mail admin

Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.

sflogo.php