]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitda8d53cffe5886a5b516e200bf83f3e743821bb6
tree64c5cbf06f2c9446b607805764aae6067ec411a9
parentcc168300850d24813cb411312d4f4176b61d61ba
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