]> 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:21:02 +0000 (18:21 +0200)
commit70660e6faac534baaf6214313cb0e5bc67cddc80
tree53980b16a98165bbc70c94cbc5efea68629577aa
parentb564f32fb369c7cc4500c544685b27c17fda48fc
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