Re: [PATCH] virtio_net: switch to build_skb for mrg_rxbuf

2016-02-21 Thread Michael S. Tsirkin
On Sun, Feb 21, 2016 at 08:40:59PM +0200, Michael S. Tsirkin wrote: > For small packets data copy was observed to > take up about 15% CPU time. Switch to build_skb > and avoid the copy when using mergeable rx buffers. > > As a bonus, medium-size skbs that fit in a page will be > completely linear.

[PATCH] virtio_net: switch to build_skb for mrg_rxbuf

2016-02-21 Thread Michael S. Tsirkin
For small packets data copy was observed to take up about 15% CPU time. Switch to build_skb and avoid the copy when using mergeable rx buffers. As a bonus, medium-size skbs that fit in a page will be completely linear. Of course, we now need to lower the lower bound on packet size, to make sure a