]> git.baikalelectronics.ru Git - kernel.git/commit
net: hns3: split function hns3_handle_bdinfo()
authorYufeng Mo <moyufeng@huawei.com>
Mon, 29 Nov 2021 14:00:26 +0000 (22:00 +0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 29 Nov 2021 14:26:17 +0000 (14:26 +0000)
commitdad9a390b8aedcb0e34ffe8d2f7b3cda828d9898
treee46d842d677e9dcb7c6f2f76a3cfc554e03cd51f
parent4a2ca2be03f22223854c4ffdea1bc51f4df0f7ae
net: hns3: split function hns3_handle_bdinfo()

Function hns3_handle_bdinfo() is a bit too long. So add two
new functions hns3_handle_rx_ts_info() and hns3_handle_rx_vlan_tag(
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