1 /* SPDX-License-Identifier: GPL-2.0 OR Linux-OpenIB */
3 * Copyright (c) 2013-2018, Mellanox Technologies. All rights reserved.
10 MLX5_SRQ_FLAG_ERR
= (1 << 0),
11 MLX5_SRQ_FLAG_WQ_SIG
= (1 << 1),
12 MLX5_SRQ_FLAG_RNDV
= (1 << 2),
15 struct mlx5_srq_attr
{
41 struct mlx5_core_srq
{
42 struct mlx5_core_rsc_common common
; /* must be first */
46 size_t max_avail_gather
;
48 void (*event
)(struct mlx5_core_srq
*srq
, enum mlx5_event e
);
53 struct mlx5_srq_table
{
54 struct notifier_block nb
;
58 int mlx5_cmd_create_srq(struct mlx5_ib_dev
*dev
, struct mlx5_core_srq
*srq
,
59 struct mlx5_srq_attr
*in
);
60 int mlx5_cmd_destroy_srq(struct mlx5_ib_dev
*dev
, struct mlx5_core_srq
*srq
);
61 int mlx5_cmd_query_srq(struct mlx5_ib_dev
*dev
, struct mlx5_core_srq
*srq
,
62 struct mlx5_srq_attr
*out
);
63 int mlx5_cmd_arm_srq(struct mlx5_ib_dev
*dev
, struct mlx5_core_srq
*srq
,
65 struct mlx5_core_srq
*mlx5_cmd_get_srq(struct mlx5_ib_dev
*dev
, u32 srqn
);
67 int mlx5_init_srq_table(struct mlx5_ib_dev
*dev
);
68 void mlx5_cleanup_srq_table(struct mlx5_ib_dev
*dev
);
69 #endif /* MLX5_IB_SRQ_H */