ib_srpt: Mask off AGN_MASK bits before invoking ib_cm_listen()

git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3854 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
Bart Van Assche
2011-09-17 15:19:45 +00:00
parent 40c8c3ae0a
commit 5f0326aa3d

View File

@@ -3767,7 +3767,8 @@ static void srpt_add_one(struct ib_device *device)
sdev->srq_size, sdev->dev_attr.max_srq_wr, device->name);
if (!srpt_service_guid)
srpt_service_guid = be64_to_cpu(device->node_guid);
srpt_service_guid = be64_to_cpu(device->node_guid) &
~be64_to_cpu(IB_SERVICE_ID_AGN_MASK);
sdev->cm_id = ib_create_cm_id(device, srpt_cm_handler, sdev);
if (IS_ERR(sdev->cm_id)) {