mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-21 22:21:21 +00:00
IB/mlx5: Exposing modify CQ callback to uverbs layer
Exposed mlx5_ib_modify_cq to be called from ib device verb list. Signed-off-by: Yonatan Cohen <yonatanc@mellanox.com> Reviewed-by: Majd Dibbiny <majd@mellanox.com> Signed-off-by: Leon Romanovsky <leon@kernel.org> Signed-off-by: Doug Ledford <dledford@redhat.com>
This commit is contained in:
parent
34d9a270e7
commit
b0e9df6da2
3 changed files with 8 additions and 1 deletions
|
@ -128,6 +128,9 @@ enum {
|
|||
CQE_SIZE_128_PAD = 2,
|
||||
};
|
||||
|
||||
#define MLX5_MAX_CQ_PERIOD (BIT(__mlx5_bit_sz(cqc, cq_period)) - 1)
|
||||
#define MLX5_MAX_CQ_COUNT (BIT(__mlx5_bit_sz(cqc, cq_max_count)) - 1)
|
||||
|
||||
static inline int cqe_sz_to_mlx_sz(u8 size, int padding_128_en)
|
||||
{
|
||||
return padding_128_en ? CQE_SIZE_128_PAD :
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue