Skip to content

Commit

Permalink
Update kernel headers
Browse files Browse the repository at this point in the history
To commit 0266a177631d ("RDMA/mana_ib: Add a driver for Microsoft Azure
Network Adapter").

Signed-off-by: Long Li <longli@microsoft.com>
  • Loading branch information
longlimsft committed Dec 2, 2022
1 parent c66be3d commit 69056ae
Show file tree
Hide file tree
Showing 3 changed files with 69 additions and 0 deletions.
2 changes: 2 additions & 0 deletions kernel-headers/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ publish_internal_headers(rdma
rdma/ib_user_sa.h
rdma/ib_user_verbs.h
rdma/irdma-abi.h
rdma/mana-abi.h
rdma/mlx4-abi.h
rdma/mlx5-abi.h
rdma/mlx5_user_ioctl_cmds.h
Expand Down Expand Up @@ -70,6 +71,7 @@ rdma_kernel_provider_abi(
rdma/hns-abi.h
rdma/ib_user_verbs.h
rdma/irdma-abi.h
rdma/mana-abi.h
rdma/mlx4-abi.h
rdma/mlx5-abi.h
rdma/mthca-abi.h
Expand Down
1 change: 1 addition & 0 deletions kernel-headers/rdma/ib_user_ioctl_verbs.h
Original file line number Diff line number Diff line change
Expand Up @@ -251,6 +251,7 @@ enum rdma_driver_id {
RDMA_DRIVER_EFA,
RDMA_DRIVER_SIW,
RDMA_DRIVER_ERDMA,
RDMA_DRIVER_MANA,
};

enum ib_uverbs_gid_type {
Expand Down
66 changes: 66 additions & 0 deletions kernel-headers/rdma/mana-abi.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
/* SPDX-License-Identifier: (GPL-2.0 WITH Linux-syscall-note) */
/*
* Copyright (c) 2022, Microsoft Corporation. All rights reserved.
*/

#ifndef MANA_ABI_USER_H
#define MANA_ABI_USER_H

#include <linux/types.h>
#include <rdma/ib_user_ioctl_verbs.h>

/*
* Increment this value if any changes that break userspace ABI
* compatibility are made.
*/

#define MANA_IB_UVERBS_ABI_VERSION 1

struct mana_ib_create_cq {
__aligned_u64 buf_addr;
};

struct mana_ib_create_qp {
__aligned_u64 sq_buf_addr;
__u32 sq_buf_size;
__u32 port;
};

struct mana_ib_create_qp_resp {
__u32 sqid;
__u32 cqid;
__u32 tx_vp_offset;
__u32 reserved;
};

struct mana_ib_create_wq {
__aligned_u64 wq_buf_addr;
__u32 wq_buf_size;
__u32 reserved;
};

/* RX Hash function flags */
enum mana_ib_rx_hash_function_flags {
MANA_IB_RX_HASH_FUNC_TOEPLITZ = 1 << 0,
};

struct mana_ib_create_qp_rss {
__aligned_u64 rx_hash_fields_mask;
__u8 rx_hash_function;
__u8 reserved[7];
__u32 rx_hash_key_len;
__u8 rx_hash_key[40];
__u32 port;
};

struct rss_resp_entry {
__u32 cqid;
__u32 wqid;
};

struct mana_ib_create_qp_rss_resp {
__aligned_u64 num_entries;
struct rss_resp_entry entries[64];
};

#endif

0 comments on commit 69056ae

Please sign in to comment.