[ofw] [PATCH ] Mthca: warning was fixed
Alex Naslednikov
xalex at mellanox.co.il
Sun Sep 7 05:31:45 PDT 2008
Warning fix
signed-off by: xalex (Alexander Naslednikov)
Index: D:/Windows/MLNX_WINOF_CSUM_ARBEL/hw/mthca/kernel/mthca_cq.c
===================================================================
--- D:/Windows/MLNX_WINOF_CSUM_ARBEL/hw/mthca/kernel/mthca_cq.c
(revision 3107)
+++ D:/Windows/MLNX_WINOF_CSUM_ARBEL/hw/mthca/kernel/mthca_cq.c
(revision 3108)
@@ -608,8 +608,8 @@
entry->recv.ud.remote_sl = cqe->sl_ipok >> 4;
entry->recv.ud.path_bits = (uint8_t)(cqe->g_mlpath &
0x7f);
entry->recv.ud.recv_opt |= cqe->g_mlpath & 0x80 ?
IB_RECV_OPT_GRH_VALID : 0;
- checksum = (u16)(cl_ntoh32(cqe->rqpn) >> 24) |
- ((cl_ntoh32(cqe->my_ee) >> 16) &
0xff00);
+ checksum = (u16)((cl_ntoh32(cqe->rqpn) >> 24) |
+ ((cl_ntoh32(cqe->my_ee) >> 16) &
0xff00));
entry->recv.ud.csum_ok =
mthca_ib_ipoib_csum_ok(checksum, cqe->sl_ipok & 1);
}
if (!is_send && cqe->rlid == 0){"found rlid == 0 \n "));
More information about the ofw
mailing list