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

Function hns3_set_l2l3l4() is a bit too long. So add two
new functions hns3_set_l3_type() and hns3_set_l4_csum_length()
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