Re: [PATCH net-next V5 3/3] tun: rx batching

2017-01-18 Thread Michael S. Tsirkin
On Wed, Jan 18, 2017 at 03:02:03PM +0800, Jason Wang wrote: > We can only process 1 packet at one time during sendmsg(). This often > lead bad cache utilization under heavy load. So this patch tries to do > some batching during rx before submitting them to host network > stack. This is done through

[PATCH net-next V5 3/3] tun: rx batching

2017-01-17 Thread Jason Wang
We can only process 1 packet at one time during sendmsg(). This often lead bad cache utilization under heavy load. So this patch tries to do some batching during rx before submitting them to host network stack. This is done through accepting MSG_MORE as a hint from sendmsg() caller, if it was set,