commit | 99e713f8daf8e0ddb728ba543a05a2b67d8c47cc | [log] [tgz] |
---|---|---|
author | Lijun Ou <oulijun@huawei.com> | Fri Mar 20 11:23:36 2020 +0800 |
committer | Jason Gunthorpe <jgg@mellanox.com> | Thu Mar 26 16:52:27 2020 -0300 |
tree | 625db10304bff7c00167f0b6f1b26fdc0b6ace04 | |
parent | d398d4ca5f17e7ba762bc897c82afca868e47a7c [diff] |
RDMA/hns: Optimize hns_roce_alloc_vf_resource() The capbilities of hardware should be got at first and then used in hns_roce_alloc_vf_resource(). Also removes an unnecessary if ... else condition in it. Link: https://lore.kernel.org/r/1584674622-52773-5-git-send-email-liweihang@huawei.com Signed-off-by: Lijun Ou <oulijun@huawei.com> Signed-off-by: Weihang Li <liweihang@huawei.com> Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>