net: hns3: refactor function hns3_get_vector_ring_chain()
authorJie Wang <wangjie125@huawei.com>
Thu, 2 Dec 2021 08:36:03 +0000 (16:36 +0800)
committerDavid S. Miller <davem@davemloft.net>
Thu, 2 Dec 2021 11:53:43 +0000 (11:53 +0000)
commit1b33341e3dc09dd356897b351e9b3c008cb1a69e
tree49d49be6f476e8d2844b46c210cbc2b069193f6b
parent358e3edb31d5f49a39be25e8059c96b99cf101a6
net: hns3: refactor function hns3_get_vector_ring_chain()

Currently  hns3_get_vector_ring_chain() 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/hns3_enet.c