答复: [PATCH][net-next] netlink: avoid to allocate full skb when sending to many devices

2018-09-18 Thread Li,Rongqing
> On 09/17/2018 10:26 PM, Li RongQing wrote: > > if skb->head is vmalloc address, when this skb is delivered, full > > allocation for this skb is required, if there are many devices, the > > --- > > net/netlink/af_netlink.c | 14 -- > > 1 file changed, 8 insertions(+), 6 deletions(-) >

Re: [PATCH][net-next] netlink: avoid to allocate full skb when sending to many devices

2018-09-18 Thread Eric Dumazet
On 09/17/2018 10:26 PM, Li RongQing wrote: > if skb->head is vmalloc address, when this skb is delivered, full > allocation for this skb is required, if there are many devices, > the full allocation will be called for every devices > > now using the first time allocated skb when iterate other d

[PATCH][net-next] netlink: avoid to allocate full skb when sending to many devices

2018-09-17 Thread Li RongQing
if skb->head is vmalloc address, when this skb is delivered, full allocation for this skb is required, if there are many devices, the full allocation will be called for every devices now using the first time allocated skb when iterate other devices to send, reduce full allocation and speedup deliv