mirror of
https://github.com/SCST-project/scst.git
synced 2026-08-20 06:06:23 +00:00
ib_srpt: Only report that SRQ creation failed if it was attempted to create an SRQ
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7089 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
+4
-2
@@ -4378,9 +4378,11 @@ static void srpt_add_one(struct ib_device *device)
|
||||
sdev->srq = use_srq ? ib_create_srq(sdev->pd, &srq_attr) :
|
||||
ERR_PTR(-ENOTSUPP);
|
||||
if (IS_ERR(sdev->srq)) {
|
||||
pr_debug("ib_create_srq() failed: %ld\n", PTR_ERR(sdev->srq));
|
||||
if (use_srq)
|
||||
pr_debug("ib_create_srq() failed: %ld\n",
|
||||
PTR_ERR(sdev->srq));
|
||||
|
||||
/* SRQ not supported. */
|
||||
/* SRQ disabled or not supported. */
|
||||
sdev->use_srq = false;
|
||||
} else {
|
||||
pr_debug("create SRQ #wr= %d max_allow=%d dev= %s\n",
|
||||
|
||||
Reference in New Issue
Block a user