Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

at v6.10-rc5 78 lines 1.4 kB view raw
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 19enum mana_ib_create_cq_flags { 20 MANA_IB_CREATE_RNIC_CQ = 1 << 0, 21}; 22 23struct mana_ib_create_cq { 24 __aligned_u64 buf_addr; 25 __u16 flags; 26 __u16 reserved0; 27 __u32 reserved1; 28}; 29 30struct mana_ib_create_cq_resp { 31 __u32 cqid; 32 __u32 reserved; 33}; 34 35struct mana_ib_create_qp { 36 __aligned_u64 sq_buf_addr; 37 __u32 sq_buf_size; 38 __u32 port; 39}; 40 41struct mana_ib_create_qp_resp { 42 __u32 sqid; 43 __u32 cqid; 44 __u32 tx_vp_offset; 45 __u32 reserved; 46}; 47 48struct mana_ib_create_wq { 49 __aligned_u64 wq_buf_addr; 50 __u32 wq_buf_size; 51 __u32 reserved; 52}; 53 54/* RX Hash function flags */ 55enum mana_ib_rx_hash_function_flags { 56 MANA_IB_RX_HASH_FUNC_TOEPLITZ = 1 << 0, 57}; 58 59struct mana_ib_create_qp_rss { 60 __aligned_u64 rx_hash_fields_mask; 61 __u8 rx_hash_function; 62 __u8 reserved[7]; 63 __u32 rx_hash_key_len; 64 __u8 rx_hash_key[40]; 65 __u32 port; 66}; 67 68struct rss_resp_entry { 69 __u32 cqid; 70 __u32 wqid; 71}; 72 73struct mana_ib_create_qp_rss_resp { 74 __aligned_u64 num_entries; 75 struct rss_resp_entry entries[64]; 76}; 77 78#endif