net: hns3: split function hns3_nic_net_xmit()
authorYufeng Mo <moyufeng@huawei.com>
Thu, 2 Dec 2021 08:35:59 +0000 (16:35 +0800)
committerDavid S. Miller <davem@davemloft.net>
Thu, 2 Dec 2021 11:53:43 +0000 (11:53 +0000)
commit8d4b409bac5710cbf51c97c5d74e956476cd4de0
treed79fb802377772728c001470788774e7a092bf09
parenta41fb3961d8df745adac5374d87a6c2398057364
net: hns3: split function hns3_nic_net_xmit()

Function hns3_nic_net_xmit() is a bit too long. So add a
new function hns3_handle_skb_desc() 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