]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
net: hns3: split function hns3_nic_get_stats64()
authorYufeng Mo <moyufeng@huawei.com>
Mon, 29 Nov 2021 14:00:25 +0000 (22:00 +0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 29 Nov 2021 14:26:17 +0000 (14:26 +0000)
commit8469b645c9a188c6a748bc2c45ddd0c67302a2ab
treeb27f05641aab4dcdc21f46a7cadf98bb27e44d4e
parente06dac5290b7f5b98d9f3e4f909548f704f1b335
net: hns3: split function hns3_nic_get_stats64()

Function hns3_nic_get_stats64() is a bit too long. So add a
new function hns3_fetch_stats() to simplify code and improve
code readability.

Signed-off-by: Yufeng Mo <moyufeng@huawei.com>
Signed-off-by: Guangbin Huang <huangguangbin2@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/hisilicon/hns3/hns3_enet.c