IB/isert: Adjust CQ size to HW limits
authorChris Moore <Chris.Moore@Emulex.Com>
Tue, 4 Nov 2014 16:28:29 +0000 (16:28 +0000)
committerNicholas Bellinger <nab@linux-iscsi.org>
Thu, 20 Nov 2014 06:28:42 +0000 (22:28 -0800)
commitb1a5ad006b34ded9dc7ec64988deba1b3ecad367
tree04564dc1534581d24bc8152b950572699fd1fc5c
parentb6932ee35f1c1364dcea0e691b2feb912a6777e5
IB/isert: Adjust CQ size to HW limits

isert has an issue of trying to create a CQ with more CQEs than are
supported by the hardware, that currently results in failures during
isert_device creation during first session login.

This is the isert version of the patch that Minh Tran submitted for
iser, and is simple a workaround required to function with existing
ocrdma hardware.

Signed-off-by: Chris Moore <chris.moore@emulex.com>
Reviewied-by: Sagi Grimberg <sagig@mellanox.com>
Cc: <stable@vger.kernel.org> # 3.10+
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
drivers/infiniband/ulp/isert/ib_isert.c