From 5f0326aa3d97bacdbc60a7769105a561cd11d32c Mon Sep 17 00:00:00 2001 From: Bart Van Assche Date: Sat, 17 Sep 2011 15:19:45 +0000 Subject: [PATCH] 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 --- srpt/src/ib_srpt.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/srpt/src/ib_srpt.c b/srpt/src/ib_srpt.c index adf2d1afa..77934b74d 100644 --- a/srpt/src/ib_srpt.c +++ b/srpt/src/ib_srpt.c @@ -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)) {