Re: [PATCH -next v2] virtio_net: Avoid loop in virtnet_poll

2020-08-02 Thread maowenan
On 8/2/20 2:26 PM, Michael S. Tsirkin wrote: Just noticed the subject is wrong: this is no longer a virtio_net patch. thanks, I will change the subject and send v3.

Re: [PATCH -next v2] virtio_net: Avoid loop in virtnet_poll

2020-08-02 Thread Michael S. Tsirkin
Just noticed the subject is wrong: this is no longer a virtio_net patch. On Sun, Aug 02, 2020 at 01:56:33PM +0800, Mao Wenan wrote: > The loop may exist if vq->broken is true, > virtqueue_get_buf_ctx_packed or virtqueue_get_buf_ctx_split > will return NULL, so virtnet_poll will reschedule napi

Re: [PATCH -next v2] virtio_net: Avoid loop in virtnet_poll

2020-08-02 Thread Michael S. Tsirkin
On Sun, Aug 02, 2020 at 01:56:33PM +0800, Mao Wenan wrote: > The loop may exist if vq->broken is true, > virtqueue_get_buf_ctx_packed or virtqueue_get_buf_ctx_split > will return NULL, so virtnet_poll will reschedule napi to > receive packet, it will lead cpu usage(si) to 100%. > > call trace as

[PATCH -next v2] virtio_net: Avoid loop in virtnet_poll

2020-08-01 Thread Mao Wenan
The loop may exist if vq->broken is true, virtqueue_get_buf_ctx_packed or virtqueue_get_buf_ctx_split will return NULL, so virtnet_poll will reschedule napi to receive packet, it will lead cpu usage(si) to 100%. call trace as below: virtnet_poll virtnet_receive