Skip to content

Commit

Permalink
Update kernel headers
Browse files Browse the repository at this point in the history
To commit: 589b844f1bf0 ("RDMA/mlx5: Send UAR page index as ioctl attribute");

Signed-off-by: Yishai Hadas <yishaih@nvidia.com>
  • Loading branch information
Yishai Hadas committed Jun 30, 2024
1 parent 4513613 commit ca6211a
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 4 deletions.
7 changes: 3 additions & 4 deletions kernel-headers/rdma/ib_user_ioctl_cmds.h
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,6 @@
#define UVERBS_ID_NS_MASK 0xF000
#define UVERBS_ID_NS_SHIFT 12

#define UVERBS_UDATA_DRIVER_DATA_NS 1
#define UVERBS_UDATA_DRIVER_DATA_FLAG (1UL << UVERBS_ID_NS_SHIFT)

enum uverbs_default_objects {
UVERBS_OBJECT_DEVICE, /* No instances of DEVICE are allowed */
UVERBS_OBJECT_PD,
Expand All @@ -61,8 +58,10 @@ enum uverbs_default_objects {
};

enum {
UVERBS_ATTR_UHW_IN = UVERBS_UDATA_DRIVER_DATA_FLAG,
UVERBS_ID_DRIVER_NS = 1UL << UVERBS_ID_NS_SHIFT,
UVERBS_ATTR_UHW_IN = UVERBS_ID_DRIVER_NS,
UVERBS_ATTR_UHW_OUT,
UVERBS_ID_DRIVER_NS_WITH_UHW,
};

enum uverbs_methods_device {
Expand Down
9 changes: 9 additions & 0 deletions kernel-headers/rdma/mana-abi.h
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,15 @@ struct mana_ib_create_qp_resp {
__u32 reserved;
};

struct mana_ib_create_rc_qp {
__aligned_u64 queue_buf[4];
__u32 queue_size[4];
};

struct mana_ib_create_rc_qp_resp {
__u32 queue_id[4];
};

struct mana_ib_create_wq {
__aligned_u64 wq_buf_addr;
__u32 wq_buf_size;
Expand Down
4 changes: 4 additions & 0 deletions kernel-headers/rdma/mlx5_user_ioctl_cmds.h
Original file line number Diff line number Diff line change
Expand Up @@ -270,6 +270,10 @@ enum mlx5_ib_device_query_context_attrs {
MLX5_IB_ATTR_QUERY_CONTEXT_RESP_UCTX = (1U << UVERBS_ID_NS_SHIFT),
};

enum mlx5_ib_create_cq_attrs {
MLX5_IB_ATTR_CREATE_CQ_UAR_INDEX = UVERBS_ID_DRIVER_NS_WITH_UHW,
};

#define MLX5_IB_DW_MATCH_PARAM 0xA0

struct mlx5_ib_match_params {
Expand Down

0 comments on commit ca6211a

Please sign in to comment.