Laurent Vivier 7550a82259 virtio-net: fix TX timer with tx_burst
When virtio_net_flush_tx() reaches the tx_burst value all
the queue is not flushed and nothing restart the timer.

Fix that by doing for TX timer as we do for bottom half TX:
rearming the timer if we find any packet to send during the
virtio_net_flush_tx() call.

Fixes: e3f30488e5f8 ("virtio-net: Limit number of packets sent per TX flush")
Cc: alex.williamson@redhat.com
Signed-off-by: Laurent Vivier <lvivier@redhat.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Jason Wang <jasowang@redhat.com>
2022-10-28 13:28:52 +08:00
..
2022-10-25 11:37:17 -04:00
2022-10-26 10:04:05 -04:00
2022-06-30 04:49:40 +05:30
2022-04-26 12:25:14 +02:00
2022-09-04 07:02:56 +01:00
2022-07-22 19:01:44 +02:00
2022-10-26 12:54:59 +04:00
2022-06-11 11:44:50 +02:00
2022-10-24 11:20:15 +02:00