Thread (1 message) 1 message, 1 author, 2016-09-19

RE: [RFC 06/11] Add support for QP verbs

From: Amrani, Ram <hidden>
Date: 2016-09-19 09:00:26
Also in: linux-rdma

quoted
+
+	rc = ib_get_cached_gid(ibqp->device, attr->ah_attr.port_num,
+			       attr->ah_attr.grh.sgid_index, &gid, &gid_attr);
+	if (!rc && !memcmp(&gid, &zgid, sizeof(gid)))
+		rc = -ENOENT;
+
+	if (!rc && gid_attr.ndev) {
<snip>
quoted
+		}
+	}
+	if (rc)
+		return -EINVAL;
I think it is better to check "rc" right after call to ib_get_cached_gid().
Somehow this e-mail slipped.
Thanks, will update.

--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help