|
@@ -1500,10 +1500,12 @@ static int hclgevf_init_instance(struct hclgevf_dev *hdev,
|
|
|
return ret;
|
|
|
break;
|
|
|
case HNAE3_CLIENT_ROCE:
|
|
|
- hdev->roce_client = client;
|
|
|
- hdev->roce.client = client;
|
|
|
+ if (hnae3_dev_roce_supported(hdev)) {
|
|
|
+ hdev->roce_client = client;
|
|
|
+ hdev->roce.client = client;
|
|
|
+ }
|
|
|
|
|
|
- if (hdev->roce_client && hnae3_dev_roce_supported(hdev)) {
|
|
|
+ if (hdev->roce_client && hdev->nic_client) {
|
|
|
ret = hclgevf_init_roce_base_info(hdev);
|
|
|
if (ret)
|
|
|
return ret;
|