e1000: check buffer availability
commit6cdfab2868dd593902e2b7db3ba9f49f2cc03e3f
authorMichael S. Tsirkin <mst@redhat.com>
Sun, 27 Mar 2011 11:37:35 +0000 (27 13:37 +0200)
committerMichael S. Tsirkin <mst@redhat.com>
Mon, 28 Mar 2011 16:34:23 +0000 (28 18:34 +0200)
treecbf07b58f482ef8a63b9d47e52b198ebb6b1e0fb
parent89c473fd82daf7dddad8162a683bcd0ef671ecda
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