Commit 4ce2d73f authored by laodazhao's avatar laodazhao
Browse files

net: hns3: Fix ROH mac address initialization.

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



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

Fix the ROH MAC address mismatch EID format.
In this patch, we modify the initialization sequence in mac
init process, in order to fix this issue.

Fixes: 46685dc2 ("net: hns3: add ROH MAC type definitions and support query MAC type")

Signed-off-by: default avatarDazhao Lao <laodazhao@huawei.com>
Reviewed-by: default avatarKe Chen <chenke54@huawei.com>
parent 34397912
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -3003,8 +3003,8 @@ static int hclge_mac_init(struct hclge_dev *hdev)
	struct hclge_mac *mac = &hdev->hw.mac;
	int ret;

	hclge_roh_convert_mac_addr(hdev);
	hclge_mac_type_init(hdev);
	hclge_roh_convert_mac_addr(hdev);
	hdev->support_sfp_query = true;

	if (!test_bit(HCLGE_STATE_RST_HANDLING, &hdev->state))