RDMA/hns: Move the location for initializing tmp_len
authoroulijun <oulijun@huawei.com>
Tue, 22 May 2018 12:47:15 +0000 (20:47 +0800)
committerJason Gunthorpe <jgg@mellanox.com>
Wed, 23 May 2018 21:45:44 +0000 (15:45 -0600)
commit55ba49cbcef37053d973f9a45bc58818c333fe13
tree80e7c5ad2d635b3aae975d0edae1bf64925dd936
parent05d6a4ddb654ef6f2fbbcf9dcb3b263184baa8e4
RDMA/hns: Move the location for initializing tmp_len

When posted work request, it need to compute the length of
all sges of every wr and fill it into the msg_len field of
send wqe. Thus, While posting multiple wr,
tmp_len should be reinitialized to zero.

Fixes: 8b9b8d143b46 ("RDMA/hns: Fix the endian problem for hns")
Signed-off-by: Lijun Ou <oulijun@huawei.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
drivers/infiniband/hw/hns/hns_roce_hw_v2.c