IB/hns: Fix the bug of setting port mtu
authorWei Hu (Xavier) <xavier.huwei@huawei.com>
Tue, 29 Nov 2016 23:10:27 +0000 (23:10 +0000)
committerDoug Ledford <dledford@redhat.com>
Sat, 3 Dec 2016 19:20:42 +0000 (14:20 -0500)
commit9daed0affa1378cbfbc549de6a2b25c778c15bda
treeecfafb936a84a6b4b55f0a1994a8e397c7a368db
parentbfcc681bd09d6cd96aa0ec667533a867253731aa
IB/hns: Fix the bug of setting port mtu

In hns_roce driver, we need not call iboe_get_mtu to reduce
IB headers from effective IBoE MTU because hr_dev->caps.max_mtu
has already been reduced.

Signed-off-by: Wei Hu (Xavier) <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