Typo fix in mlx4_poll_one.

Found by: Reuven Amitai of Mellanox.
Signed-off-by: Jack Morgenstein <[EMAIL PROTECTED]>

diff --git a/src/cq.c b/src/cq.c
index 5ce9d0d..749841d 100644
--- a/src/cq.c
+++ b/src/cq.c
@@ -333,7 +333,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     = (uint16_t) ntohl(cqe->immed_rss_invalid);
-               wc->wc_flags      |= ntohs(cqe->g_mlpath_rqpn) & 0x80000000 ?
+               wc->wc_flags      |= ntohl(cqe->g_mlpath_rqpn) & 0x80000000 ?
                        IBV_WC_GRH : 0;
        }
 
L
_______________________________________________
general mailing list
[email protected]
http://lists.openfabrics.org/cgi-bin/mailman/listinfo/general

To unsubscribe, please visit http://openib.org/mailman/listinfo/openib-general

Reply via email to