diff options
author | Yonatan Cohen <yonatanc@mellanox.com> | 2017-11-13 11:51:15 +0300 |
---|---|---|
committer | Doug Ledford <dledford@redhat.com> | 2017-11-14 00:59:22 +0300 |
commit | b0e9df6da25890448ebd134b7f647f16bced9abc (patch) | |
tree | 7fec5add3fa70a809b7bac84fb511ddfbfa796bf /include/linux/mlx5/cq.h | |
parent | 34d9a270e74a412f041b528c33b75e3e6bc7a242 (diff) | |
download | linux-b0e9df6da25890448ebd134b7f647f16bced9abc.tar.xz |
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>
Diffstat (limited to 'include/linux/mlx5/cq.h')
-rw-r--r-- | include/linux/mlx5/cq.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/linux/mlx5/cq.h b/include/linux/mlx5/cq.h index cc718e245b1e..6be357b219ec 100644 --- a/include/linux/mlx5/cq.h +++ b/include/linux/mlx5/cq.h @@ -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 : |