IB/hns: Fix the value of device_cap_flags
authorLijun Ou <oulijun@huawei.com>
Thu, 15 Sep 2016 22:48:08 +0000 (23:48 +0100)
committerDoug Ledford <dledford@redhat.com>
Mon, 3 Oct 2016 15:43:10 +0000 (11:43 -0400)
commita74aab6c2fdbd9f9501638f67ebedce49d9a8195
treec3cb9476b0c09e916f60870ae1b11719e22f3335
parent31644665d41140c3961c5213350759edb24d5081
IB/hns: Fix the value of device_cap_flags

In the latest IB core version, it has some known issues
with memory registration using the local_dma_lkey.
Thus RoCE don't expose support for it, and remove
device->local_dma_lkey which is introduced to working systems.

Signed-off-by: Lijun Ou <oulijun@huawei.com>
Reviewed-by: Wei Hu <xavier.huwei@huawei.com>
Signed-off-by: Salil Mehta <salil.mehta@huawei.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/hw/hns/hns_roce_main.c