Unverified Commit 17d23b62 authored by openeuler-ci-bot's avatar openeuler-ci-bot Committed by Gitee
Browse files

!7131 net: hns3: Fix ROH mac address initialization.

Merge Pull Request from: @laodazhao 
 
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.

bugzilla: https://gitee.com/openeuler/kernel/issues/I9O627 
 
Link:https://gitee.com/openeuler/kernel/pulls/7131

 

Reviewed-by: default avatarKe Chen <chenke54@huawei.com>
Signed-off-by: default avatarZhang Peng <zhangpeng362@huawei.com>
parents 46d0b5cb 4ce2d73f
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -3008,8 +3008,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))