Re: [PATCH net-next 11/12] net: hns3: do not allocate linear data for fraglist skb

2019-10-16 Thread tanhuazhong
On 2019/10/17 1:18, Jakub Kicinski wrote: On Wed, 16 Oct 2019 15:17:10 +0800, Huazhong Tan wrote: From: Yunsheng Lin 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

Re: [PATCH net-next 11/12] net: hns3: do not allocate linear data for fraglist skb

2019-10-16 Thread Jakub Kicinski
On Wed, 16 Oct 2019 15:17:10 +0800, Huazhong Tan wrote: > From: Yunsheng Lin > > 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

[PATCH net-next 11/12] net: hns3: do not allocate linear data for fraglist skb

2019-10-16 Thread Huazhong Tan
From: Yunsheng Lin 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