]> git.proxmox.com Git - mirror_ubuntu-bionic-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)
committerSeth Forshee <seth.forshee@canonical.com>
Fri, 16 Mar 2018 15:46:44 +0000 (10:46 -0500)
commita084743b2902d0dee01a197a03034c0683bd987a
treea0909289ad73d9081fdf598afd74be0747299fe4
parentc92b238ed7e9c1deaeedcf1d224b6a548312ff22
RDMA/hns: Set access flags of hip08 RoCE

BugLink: http://bugs.launchpad.net/bugs/1756097
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>
(cherry picked from commit ace1c5416b37bc9d925f91ee163c47fa6aa16781)
Signed-off-by: Manoj Iyer <manoj.iyer@canonical.com>
Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
drivers/infiniband/hw/hns/hns_roce_device.h
drivers/infiniband/hw/hns/hns_roce_hw_v2.c