Re: [PATCH net] vhost_net: correctly check tx avail during rx busy polling

2017-09-03 Thread Jason Wang
On 2017年09月01日 23:51, Michael S. Tsirkin wrote: On Fri, Sep 01, 2017 at 05:02:50PM +0800, Jason Wang wrote: We check tx avail through vhost_enable_notify() in the past which is wrong since it only checks whether or not guest has filled more available buffer since last avail idx

Re: [PATCH net] vhost_net: correctly check tx avail during rx busy polling

2017-09-01 Thread Michael S. Tsirkin
On Fri, Sep 01, 2017 at 05:02:50PM +0800, Jason Wang wrote: > We check tx avail through vhost_enable_notify() in the past which is > wrong since it only checks whether or not guest has filled more > available buffer since last avail idx synchronization which was just > done by

[PATCH net] vhost_net: correctly check tx avail during rx busy polling

2017-09-01 Thread Jason Wang
We check tx avail through vhost_enable_notify() in the past which is wrong since it only checks whether or not guest has filled more available buffer since last avail idx synchronization which was just done by vhost_vq_avail_empty() before. What we really want is checking pending buffers in the