]> git.baikalelectronics.ru Git - kernel.git/commit
net: hns3: do not allocate linear data for fraglist skb
authorYunsheng Lin <linyunsheng@huawei.com>
Sat, 19 Oct 2019 08:03:55 +0000 (16:03 +0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 21 Oct 2019 16:22:10 +0000 (09:22 -0700)
commita7d198bb50142e6071034b4bd2833f94f9140c02
treeee3c6828d1efab9c86336495ffd1a0a46c3def67
parent4994eaf1cc9afa3a61e518c136ea723fe2aefacd
net: hns3: do not allocate linear data for fraglist skb

Currently, napi_alloc_skb() is used to allocate skb for fraglist
when the head skb is not enough to hold the remaining data, and
the remaining data is added to the frags part of the fraglist skb,
leaving the linear part unused.

So this patch passes length of 0 to allocate fraglist skb with
zero size of linear data.

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