]> 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:32:27 +0000 (18:32 +0200)
commit6a5e230a8a172d4c843d96ce6f9977b63ef4acfb
treecafa3947dcdf63acb39c9a9dc4816e9b823923fb
parent7ae8fa6b70975b6efbbef7912d09bff5a0bff491
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