e1000: check buffer availability
authorMichael S. Tsirkin <mst@redhat.com>
Sun, 27 Mar 2011 11:37:35 +0000 (13:37 +0200)
committerMichael S. Tsirkin <mst@redhat.com>
Mon, 28 Mar 2011 16:34:23 +0000 (18:34 +0200)
commit3e3dd4dc942c09c27cfa2596296bba2f8cec5d7e
treecbf07b58f482ef8a63b9d47e52b198ebb6b1e0fb
parent35ce7892189ef42296cec19c47897fc73e0d67f7
e1000: check buffer availability

Reduce spurious packet drops on RX ring empty
by verifying that we have at least 1 buffer
ahead of the time.

Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
hw/e1000.c