[net-next V3 0/2] drivers: net: virtio_net: implement

2019-11-26 Thread Julio Faracco
messages. Julio Faracco (2): netdev: pass the stuck queue to the timeout handler drivers: net: virtio_net: Implement a dev_watchdog handler arch/m68k/emu/nfeth.c | 2 +- arch/um/drivers/net_kern.c| 2 +- arch/um/drivers/vector_kern.c

[net-next V3 2/2] drivers: net: virtio_net: Implement a dev_watchdog handler

2019-11-26 Thread Julio Faracco
-by: Julio Faracco Signed-off-by: Daiane Mendes Cc: Jason Wang --- drivers/net/virtio_net.c | 83 +++- 1 file changed, 82 insertions(+), 1 deletion(-) diff --git a/drivers/net/virtio_net.c b/drivers/net/virtio_net.c index 4d7d5434cc5d..fbe1dfde3a4b 100644

[PATCH net-next v2] drivers: net: virtio_net: Implement a dev_watchdog handler

2019-11-21 Thread Julio Faracco
virtnet_reset method to recover TX queues from a error state. That function is called by schedule_work method and it puts the reset function into work queue. As the error cause is unknown at this moment, it would be better to reset all queues. Signed-off-by: Julio Faracco Signed-off-by: Daiane Mendes Cc

[PATCH] drivers: net: virtio_net: Implement a dev_watchdog handler

2019-11-21 Thread Julio Faracco
virtnet_reset method to recover TX queues from a error state. That function is called by schedule_work method and it puts the reset function into work queue. As the error cause is unknown at this moment, it would be better to reset all queues. Signed-off-by: Julio Faracco Signed-off-by: Daiane Mendes Cc

Re: [PATCH RFC net-next 2/2] drivers: net: virtio_net: Add tx_timeout function

2019-10-07 Thread Julio Faracco
Em seg, 7 de out de 2019 às 04:51, Michael S. Tsirkin escreveu: > > On Sun, Oct 06, 2019 at 03:45:15PM -0300, jcfara...@gmail.com wrote: > > From: Julio Faracco > > > > To enable dev_watchdog, virtio_net should have a tx_timeout defined > > (.ndo_tx_timeout). Th

Re: [PATCH RFC net-next 0/2] drivers: net: virtio_net: Implement

2019-10-07 Thread Julio Faracco
Em seg, 7 de out de 2019 às 04:43, Michael S. Tsirkin escreveu: > > On Sun, Oct 06, 2019 at 03:45:13PM -0300, jcfara...@gmail.com wrote: > > From: Julio Faracco > > > > Driver virtio_net is not handling error events for TX provided by > > dev_watchdog. This even

Re: [RFC] virtio_net: Adding tx_timeout function.

2015-06-25 Thread Julio Faracco
2015-06-24 3:10 GMT-03:00 Michael S. Tsirkin m...@redhat.com: On Tue, Jun 23, 2015 at 10:44:29PM -0300, Julio Faracco wrote: virtio_net paravirtualized driver does not have a tx_timeout() function to guarantee that the driver will recover properly after receiving a timeout during