]> git.itanic.dy.fi Git - linux-stable/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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 15 Sep 2022 08:47:17 +0000 (10:47 +0200)
commit083f5179fe6f5fd722361bf281f85ee226aa3df6
tree6459d6cdc8974cd536d333b37a91ef69b810291b
parentddb0d1d4d4ff1ed82418a5e522e50a03ac3b98ae
RDMA/irdma: Report the correct max cqes from query device

[ Upstream commit 12faad5e5cf2372af2d51f348b697b5edf838daf ]

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

Fixes: b48c24c2d710 ("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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/infiniband/hw/irdma/verbs.c