]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit54e41bc167fd820a250a9f26e6b2f42cddcb2479
tree4378186a485b6a9e1582fd8b5b7ecbfb3bbbba94
parentd5c37ebc72f01a291e5d587a7315d35ab480de1a
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