Re: [PATCH V3 0/3] basic busy polling support for vhost_net

2016-02-26 Thread David Miller
From: Jason Wang Date: Fri, 26 Feb 2016 16:42:41 +0800 > This series tries to add basic busy polling for vhost net. The idea is > simple: at the end of tx/rx processing, busy polling for new tx added > descriptor and rx receive socket for a while. The maximum number of >

[PATCH V3 3/3] vhost_net: basic polling support

2016-02-26 Thread Jason Wang
This patch tries to poll for new added tx buffer or socket receive queue for a while at the end of tx/rx processing. The maximum time spent on polling were specified through a new kind of vring ioctl. Signed-off-by: Jason Wang --- drivers/vhost/net.c| 79

[PATCH V3 2/3] vhost: introduce vhost_vq_avail_empty()

2016-02-26 Thread Jason Wang
This patch introduces a helper which will return true if we're sure that the available ring is empty for a specific vq. When we're not sure, e.g vq access failure, return false instead. This could be used for busy polling code to exit the busy loop. Signed-off-by: Jason Wang

[PATCH V3 1/3] vhost: introduce vhost_has_work()

2016-02-26 Thread Jason Wang
This path introduces a helper which can give a hint for whether or not there's a work queued in the work list. This could be used for busy polling code to exit the busy loop. Signed-off-by: Jason Wang --- drivers/vhost/vhost.c | 7 +++ drivers/vhost/vhost.h | 1 + 2

[PATCH V3 0/3] basic busy polling support for vhost_net

2016-02-26 Thread Jason Wang
This series tries to add basic busy polling for vhost net. The idea is simple: at the end of tx/rx processing, busy polling for new tx added descriptor and rx receive socket for a while. The maximum number of time (in us) could be spent on busy polling was specified ioctl. Test A were done