Browse Source

RDMA/cxgb4: Initialize reserved fields in a FW work request

Signed-off-by: Steve Wise <swise@opengridcomputing.com>
Signed-off-by: Roland Dreier <roland@purestorage.com>
Steve Wise 11 năm trước cách đây
mục cha
commit
c3f98fa291
1 tập tin đã thay đổi với 2 bổ sung0 xóa
  1. 2 0
      drivers/infiniband/hw/cxgb4/qp.c

+ 2 - 0
drivers/infiniband/hw/cxgb4/qp.c

@@ -436,6 +436,8 @@ static int build_rdma_send(struct t4_sq *sq, union t4_wr *wqe,
 	default:
 		return -EINVAL;
 	}
+	wqe->send.r3 = 0;
+	wqe->send.r4 = 0;
 
 	plen = 0;
 	if (wr->num_sge) {