virtio_net: introduce TX timeout watchdog
authorTony Lu <tony.ly@linux.alibaba.com>
Fri, 17 Sep 2021 08:40:06 +0000 (16:40 +0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 20 Sep 2021 08:42:51 +0000 (09:42 +0100)
commita520794b063b9567799533c4fec230d860f5c9e5
tree652045543f6c2fb6c19894c177867904d68f11fe
parent14e94f9445a9e91d460f5d4b519f8892c3fb14bb
virtio_net: introduce TX timeout watchdog

This implements ndo_tx_timeout handler and put this into stats. When
there is something wrong to send out packets, we could notice tx timeout
events and total timeout counter.

We have suffered send timeout issues due to the backends hung. With this,
we can find the details, and collect the counters by monitor systems.

Signed-off-by: Tony Lu <tony.ly@linux.alibaba.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/virtio_net.c