From patchwork Sat Mar 5 02:45:46 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jason Gunthorpe X-Patchwork-Id: 611691 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter1.kernel.org (8.14.4/8.14.3) with ESMTP id p252k1Cg015716 for ; Sat, 5 Mar 2011 02:46:01 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1759747Ab1CECps (ORCPT ); Fri, 4 Mar 2011 21:45:48 -0500 Received: from quartz.orcorp.ca ([139.142.54.143]:42619 "EHLO quartz.orcorp.ca" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752327Ab1CECps (ORCPT ); Fri, 4 Mar 2011 21:45:48 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=obsidianresearch.com; s=rsa1; h=Content-Type:MIME-Version:Message-ID:Subject:To:From:Date; bh=Io+fxaDnWxvHyGvylJjeheQIUeIhaxd9eT5hN9/IsEw=; b=2nka167eeydwjubiXmkVfd60P16Mj/lkCoNzzOTfeu6g0xRvBQ2ucDilPNrSm1lLqINgG4ui4XuEYfemlZX01ywBNgg+IwY3z9WuZ5Uzmwvfj+VZKNTap5rMqzrUeGjhmq0WNriAQLKHp0hbuwpoE4K5jBT5Lc5jC5+nzmBcXsk=; Received: from [10.0.0.11] (helo=jggl.edm.orcorp.ca) by quartz.orcorp.ca with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.72) (envelope-from ) id 1PvhV4-0003oD-RU; Fri, 04 Mar 2011 19:45:46 -0700 Received: from jgg by jggl.edm.orcorp.ca with local (Exim 4.72) (envelope-from ) id 1PvhV4-0007cc-Dx; Fri, 04 Mar 2011 19:45:46 -0700 Date: Fri, 4 Mar 2011 19:45:46 -0700 From: Jason Gunthorpe To: Roland Dreier , "linux-rdma@vger.kernel.org" Subject: [PATCH/libmlx4] Fix generation of IBV_WC_GRH Message-ID: <20110305024546.GA29147@obsidianresearch.com> MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.5.20 (2009-06-14) X-Broken-Reverse-DNS: no host name found for IP address 10.0.0.11 Sender: linux-rdma-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-rdma@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.6 (demeter1.kernel.org [140.211.167.41]); Sat, 05 Mar 2011 02:46:01 +0000 (UTC) diff --git a/src/cq.c b/src/cq.c index 2d04883..bc53f9b 100644 --- a/src/cq.c +++ b/src/cq.c @@ -317,7 +317,7 @@ static int mlx4_poll_one(struct mlx4_cq *cq, wc->src_qp = ntohl(cqe->g_mlpath_rqpn) & 0xffffff; wc->dlid_path_bits = (ntohl(cqe->g_mlpath_rqpn) >> 24) & 0x7f; wc->pkey_index = ntohl(cqe->immed_rss_invalid) >> 16; - wc->wc_flags |= ntohs(cqe->g_mlpath_rqpn) & 0x80000000 ? + wc->wc_flags |= ntohl(cqe->g_mlpath_rqpn) & 0x80000000 ? IBV_WC_GRH : 0; }