Re: [PATCH vhost 08/22] virtio_net: virtnet_poll_tx support rescheduled

2023-10-12 Thread Michael S. Tsirkin
On Wed, Oct 11, 2023 at 05:27:14PM +0800, Xuan Zhuo wrote: > virtnet_poll_tx() support to return budget when busy to be rescheduled. > > When retval < budget, napi_poll() in dev.c will exit directly. And > virtqueue_napi_complete() will be called to close napi. > > When retval == budget, the napi

[PATCH vhost 08/22] virtio_net: virtnet_poll_tx support rescheduled

2023-10-11 Thread Xuan Zhuo
virtnet_poll_tx() support to return budget when busy to be rescheduled. When retval < budget, napi_poll() in dev.c will exit directly. And virtqueue_napi_complete() will be called to close napi. When retval == budget, the napi_poll() in dev.c will re-add napi to the queue. The purpose of this pa