net: hns3: clean up for vlan handling in hns3_fill_desc_vtags
authorYunsheng Lin <linyunsheng@huawei.com>
Fri, 9 Aug 2019 02:31:09 +0000 (10:31 +0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 9 Aug 2019 20:44:32 +0000 (13:44 -0700)
commiteb977d996e9316c66e4d9908fd12d682e4db14e9
tree4378186a485b6a9e1582fd8b5b7ecbfb3bbbba94
parent130509213baeb3cada40c19dd87341a6787f8b23
net: hns3: clean up for vlan handling in hns3_fill_desc_vtags

This patch refactors the hns3_fill_desc_vtags function
by avoiding passing too many parameters, reducing indent
level and some other clean up.

This patch also adds the hns3_fill_skb_desc function to
fill the first desc of a skb.

Signed-off-by: Yunsheng Lin <linyunsheng@huawei.com>
Reviewed-by: Peng Li <lipeng321@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