Commit b4d5359e authored by Dazhao Lao's avatar Dazhao Lao
Browse files

roh/hns3: Add ROH client case in hclgevf_init_client_instance.

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



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

ROH does not support VF. However, the corresponding case needs
to be added when loading VF driver. Otherwise, an error message
will be displayed.

Fixes: fa7a4bd5 ("net: hns3: Add handle for default case")

Reviewed-by: default avatarKe Chen <chenke54@huawei.com>
Signed-off-by: default avatarDazhao Lao <laodazhao@huawei.com>
parent 9bb5bc12
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -2575,6 +2575,9 @@ static int hclgevf_init_client_instance(struct hnae3_client *client,
		if (ret)
			goto clear_roce;

		break;
	/* ROH does not support vf, just do nothing */
	case HNAE3_CLIENT_ROH:
		break;
	default:
		return -EINVAL;