]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
net: hns3: refactor hclge_mac_link_status_wait for interface reuse
authorJie Wang <wangjie125@huawei.com>
Mon, 7 Aug 2023 11:34:50 +0000 (19:34 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 16 Aug 2023 16:22:02 +0000 (18:22 +0200)
commit094310eb2b93c4db52c59921aae5e0c9b63e75c9
tree4b750ddce204dfb20124f341820a27995b7fc9ea
parent1ae9703c2e3207168e145f0f5519d5a572f7eb54
net: hns3: refactor hclge_mac_link_status_wait for interface reuse

commit 08469dacfad25428b66549716811807203744f4f upstream.

Some nic configurations could only be performed after link is down. So this
patch refactor this API for reuse.

Signed-off-by: Jie Wang <wangjie125@huawei.com>
Signed-off-by: Jijie Shao <shaojijie@huawei.com>
Reviewed-by: Leon Romanovsky <leonro@nvidia.com>
Link: https://lore.kernel.org/r/20230807113452.474224-3-shaojijie@huawei.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c