IB/hfi1: Compute BTH only for RDMA_WRITE_LAST/SEND_LAST packet
[sfrench/cifs-2.6.git] / drivers / infiniband / hw / qib / qib_rc.c
index e4a9ba1dd9ba58530c37cb08ab29548c771a51d6..61d3bc6771f0d214ff436656909db36bfc4fb8e6 100644 (file)
@@ -1916,8 +1916,7 @@ send_last:
                wc.port_num = 0;
                /* Signal completion event if the solicited bit is set. */
                rvt_cq_enter(ibcq_to_rvtcq(qp->ibqp.recv_cq), &wc,
-                            (ohdr->bth[0] &
-                             cpu_to_be32(IB_BTH_SOLICITED)) != 0);
+                            ib_bth_is_solicited(ohdr));
                break;
 
        case OP(RDMA_WRITE_FIRST):