Thread (7 messages) flat view 7 messages, 5 authors, 2021-01-19

Re: [PATCH net-next v7] vhost_net: avoid tx queue stuck when sendmsg fails

From: Willem de Bruijn <willemdebruijn.kernel@gmail.com>
Date: 2021-01-15 18:17:43
Also in: virtualization

On Fri, Jan 15, 2021 at 1:12 AM Jason Wang [off-list ref] wrote:

On 2021/1/15 下午12:46, wangyunjian wrote:
quoted
From: Yunjian Wang <redacted>

Currently the driver doesn't drop a packet which can't be sent by tun
(e.g bad packet). In this case, the driver will always process the
same packet lead to the tx queue stuck.

To fix this issue:
1. in the case of persistent failure (e.g bad packet), the driver
    can skip this descriptor by ignoring the error.
2. in the case of transient failure (e.g -ENOBUFS, -EAGAIN and -ENOMEM),
    the driver schedules the worker to try again.

Signed-off-by: Yunjian Wang <redacted>

Acked-by: Jason Wang <redacted>
Acked-by: Willem de Bruijn <willemb@google.com>
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help