]> git.baikalelectronics.ru Git - kernel.git/commit
virtio: flush buffers on open
authorRusty Russell <rusty@rustcorp.com.au>
Tue, 5 Feb 2008 04:50:07 +0000 (23:50 -0500)
committerRusty Russell <rusty@rustcorp.com.au>
Mon, 4 Feb 2008 12:50:07 +0000 (23:50 +1100)
commitea7c708b5a8c67ab095302a110f37c77fa2a434c
tree30ab7e3b1763a526dbc1610960bcb5aa9c88dec5
parent8ae58356460c4892c4e6c9399347b33a2327bff9
virtio: flush buffers on open

Fix bug found by Christian Borntraeger: if the other side fills all
the registered network buffers before we enable NAPI, we will never
get an interrupt.  The simplest fix is to process the input queue once
on open.

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