virtio: flush buffers on open
commita48bd8f67003c342e147309a331f656a5e75a5e4
authorRusty Russell <rusty@rustcorp.com.au>
Tue, 5 Feb 2008 04:50:07 +0000 (4 23:50 -0500)
committerRusty Russell <rusty@rustcorp.com.au>
Mon, 4 Feb 2008 12:50:07 +0000 (4 23:50 +1100)
tree30ab7e3b1763a526dbc1610960bcb5aa9c88dec5
parente70f2f1bb8c8cf08ba0d836466f77eea27dd3474
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