]> www.pilppa.org Git - linux-2.6-omap-h63xx.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)
commit363f15149cfba67d29f1e6a6103dda079f27f3fa
treeba1bfb698d5d0ff7590f2dfca3961d40bb2f199c
parent14c998f034bdc9a5bfa53bca18fbd0738cbc65e8
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