]> git.baikalelectronics.ru Git - kernel.git/commit
net: hns3: refactor function hclge_set_channels()
authorJie Wang <wangjie125@huawei.com>
Thu, 2 Dec 2021 08:36:02 +0000 (16:36 +0800)
committerDavid S. Miller <davem@davemloft.net>
Thu, 2 Dec 2021 11:53:43 +0000 (11:53 +0000)
commite6baf4567f9075ebfef2142d8dbaf7d8cd803bf6
tree8aad5f9c5f7edae0f2a3480a0284531387fecd33
parent0ee08cfc6558d8387217e2de65e106b07651860e
net: hns3: refactor function hclge_set_channels()

Currently  hclge_set_channels() is a bit long. Refactor it by extracting
sub process to improve the readability.

Signed-off-by: Jie Wang <wangjie125@huawei.com>
Signed-off-by: Guangbin Huang <huangguangbin2@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c