Re: [PATCH net-next] vhost_net: conditionally enable tx polling

2017-11-01 Thread Jason Wang
On 2017年11月01日 23:03, Michael S. Tsirkin wrote: On Wed, Nov 01, 2017 at 08:51:36PM +0800, Jason Wang wrote: On 2017年11月01日 00:36, Michael S. Tsirkin wrote: On Tue, Oct 31, 2017 at 06:27:20PM +0800, Jason Wang wrote: We always poll tx for socket, this is sub optimal since: - we only want to

Re: [PATCH net-next] vhost_net: conditionally enable tx polling

2017-11-01 Thread Michael S. Tsirkin
On Wed, Nov 01, 2017 at 08:51:36PM +0800, Jason Wang wrote: > > > On 2017年11月01日 00:36, Michael S. Tsirkin wrote: > > On Tue, Oct 31, 2017 at 06:27:20PM +0800, Jason Wang wrote: > > > We always poll tx for socket, this is sub optimal since: > > > > > > - we only want to be notified when sndbuf i

Re: [PATCH net-next] vhost_net: conditionally enable tx polling

2017-11-01 Thread Jason Wang
On 2017年11月01日 00:36, Michael S. Tsirkin wrote: On Tue, Oct 31, 2017 at 06:27:20PM +0800, Jason Wang wrote: We always poll tx for socket, this is sub optimal since: - we only want to be notified when sndbuf is available - this will slightly increase the waitqueue traversing time and more i

Re: [PATCH net-next] vhost_net: conditionally enable tx polling

2017-10-31 Thread Michael S. Tsirkin
On Tue, Oct 31, 2017 at 06:27:20PM +0800, Jason Wang wrote: > We always poll tx for socket, this is sub optimal since: > > - we only want to be notified when sndbuf is available > - this will slightly increase the waitqueue traversing time and more > important, vhost could not benefit from commi

[PATCH net-next] vhost_net: conditionally enable tx polling

2017-10-31 Thread Jason Wang
We always poll tx for socket, this is sub optimal since: - we only want to be notified when sndbuf is available - this will slightly increase the waitqueue traversing time and more important, vhost could not benefit from commit commit 9e641bdcfa4e ("net-tun: restructure tun_do_read for bette