Commit 1bb63063 authored by Chengchang Tang's avatar Chengchang Tang Committed by Hao Chen
Browse files

RDMA/hns: Fix allocating POE channels after IB device registeration

driver inclusion
category: bugfix
bugzilla: https://gitee.com/openeuler/kernel/issues/I9QO9C



----------------------------------------------------------------------

Currently, the POE channel was allocated after IB device registration.

Therefore, other modules will fail to register POE during this period
that IB device was registered and POE channels was not allocated.

Fixes: 85b26a97 ("RDMA/hns: Support STARS mode QP")
Signed-off-by: default avatarChengchang Tang <tangchengchang@huawei.com>
parent 79da2a4d
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1528,11 +1528,11 @@ int hns_roce_init(struct hns_roce_dev *hr_dev)
		}
	}

	hns_roce_register_poe_ch(hr_dev);
	ret = hns_roce_register_device(hr_dev);
	if (ret)
		goto error_failed_register_device;

	hns_roce_register_poe_ch(hr_dev);
	hns_roce_register_debugfs(hr_dev);

	return 0;