[ofa-general] [PATCH] libmlx4: typo in mlx4_poll_one()

Jack Morgenstein jackm at dev.mellanox.co.il
Mon Dec 24 03:54:01 PST 2007


Typo fix in mlx4_poll_one.

Found by: Reuven Amitai of Mellanox.
Signed-off-by: Jack Morgenstein <jackm at dev.mellanox.co.il>

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



More information about the general mailing list