On Fri, 15 Jan 2021 12:46:20 +0800 wangyunjian wrote: > From: Yunjian Wang <wangyunj...@huawei.com> > > 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 <wangyunj...@huawei.com>
Michael, LMK if you want to have a closer look otherwise I'll apply tomorrow.