]> git.baikalelectronics.ru Git - kernel.git/commit
net: hns3: refactor function hns3_fill_skb_desc to simplify code
authorPeng Li <lipeng321@huawei.com>
Thu, 2 Dec 2021 08:35:56 +0000 (16:35 +0800)
committerDavid S. Miller <davem@davemloft.net>
Thu, 2 Dec 2021 11:53:42 +0000 (11:53 +0000)
commitd2de6f8401e4d2db12c82e09d8dd16887d854e52
treee2f80ca140e81327cea18d7501055a55d79952e0
parentdeb628a763fd96950862501f8e6ad10d76bfa753
net: hns3: refactor function hns3_fill_skb_desc to simplify code

The function hns3_fill_skb_desc is hard to read, this patch
extract 2 functions and add new a struct data to simplify the
code and Improve readability.

Signed-off-by: Peng Li <lipeng321@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