]> git.baikalelectronics.ru Git - kernel.git/commit
RDMA/irdma: Report the correct max cqes from query device
authorSindhu-Devale <sindhu.devale@intel.com>
Tue, 6 Sep 2022 22:32:40 +0000 (17:32 -0500)
committerLeon Romanovsky <leon@kernel.org>
Wed, 7 Sep 2022 08:22:17 +0000 (11:22 +0300)
commitc24ba86fb70228c14230f228c4980aa9153dd38b
tree1f8b30e33cad5fe421d36e46552a19841fe7496a
parent2891445dc759aaad30a8a4a6f284da9a285808b1
RDMA/irdma: Report the correct max cqes from query device

Report the correct max cqes available to an application taking
into account a reserved entry to detect overflow.

Fixes: 434ed3ceee5a ("RDMA/irdma: Implement device supported verb APIs")
Signed-off-by: Sindhu-Devale <sindhu.devale@intel.com>
Signed-off-by: Shiraz Saleem <shiraz.saleem@intel.com>
Link: https://lore.kernel.org/r/20220906223244.1119-2-shiraz.saleem@intel.com
Signed-off-by: Leon Romanovsky <leon@kernel.org>
drivers/infiniband/hw/irdma/verbs.c