RDMA/hns: Set access flags of hip08 RoCE
authoroulijun <oulijun@huawei.com>
Wed, 3 Jan 2018 02:44:05 +0000 (10:44 +0800)
committerJason Gunthorpe <jgg@mellanox.com>
Wed, 3 Jan 2018 20:58:58 +0000 (13:58 -0700)
commitace1c5416b37bc9d925f91ee163c47fa6aa16781
tree64c5cbf06f2c9446b607805764aae6067ec411a9
parent4f3f7a704b3bff9e4eb322ab3c989b505f7562eb
RDMA/hns: Set access flags of hip08 RoCE

This patch refactors the code of setting access flags
for RDMA operation as well as adds the scene when
attr->max_dest_rd_atomic is zero.

Signed-off-by: Lijun Ou <oulijun@huawei.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
drivers/infiniband/hw/hns/hns_roce_device.h
drivers/infiniband/hw/hns/hns_roce_hw_v2.c