net: hns3: refactor BD filling for l2l3l4 info
authorYunsheng Lin <linyunsheng@huawei.com>
Mon, 6 May 2019 02:48:46 +0000 (10:48 +0800)
committerDavid S. Miller <davem@davemloft.net>
Tue, 7 May 2019 17:37:13 +0000 (10:37 -0700)
commit07918fcde144628f12048d5f95f28c40b073fba8
tree42b2db31ab126eb7c1a09bdb7a40a38eb11c9bca
parent39c38824c2a0b16bdc6450727847fd5c3da7e8b0
net: hns3: refactor BD filling for l2l3l4 info

This patch separates the inner and outer l2l3l4 len handling in
hns3_set_l2l3l4_len, this is a preparation to combine the l2l3l4
len and checksum handling for inner and outer header.

Signed-off-by: Yunsheng Lin <linyunsheng@huawei.com>
Signed-off-by: Huazhong Tan <tanhuazhong@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/hisilicon/hns3/hns3_enet.c