]> git.baikalelectronics.ru Git - kernel.git/commit
virtio: use callback on empty in virtio_net
authorRusty Russell <rusty@rustcorp.com.au>
Sun, 8 Jun 2008 10:51:55 +0000 (20:51 +1000)
committerJeff Garzik <jgarzik@redhat.com>
Tue, 10 Jun 2008 22:20:32 +0000 (18:20 -0400)
commit98108df437f9a84e125a3af970c5ab19ed1523bc
treeba1bfb698d5d0ff7590f2dfca3961d40bb2f199c
parentb61c1c79e37a367cccf1b42f6524ff0767f7b3d3
virtio: use callback on empty in virtio_net

virtio_net uses a timer to free old transmitted packets, rather than
leaving callbacks enabled all the time.  If the host promises to
always notify us when the transmit ring is empty, we can free packets
at that point and avoid the timer.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
drivers/net/virtio_net.c