]> rtime.felk.cvut.cz Git - lisovros/qemu_apohw.git/commit
e1000: Fix RX descriptor low threshold interrupt logic (Alex Williamson)
authoraliguori <aliguori@c046a42c-6fe2-441c-8c8c-71466251a162>
Fri, 20 Mar 2009 16:18:39 +0000 (16:18 +0000)
committeraliguori <aliguori@c046a42c-6fe2-441c-8c8c-71466251a162>
Fri, 20 Mar 2009 16:18:39 +0000 (16:18 +0000)
commite58843d0f117b2a30d27552b509d7cf24a0c4ba6
treeaf1acaed1ccf16daeeea20b276ce48e135bf2126
parent0e39d3f89b796dc3bc80409309c738a01d8c20d2
e1000: Fix RX descriptor low threshold interrupt logic (Alex Williamson)

The RXDMT0 interrupt is supposed to fire when the number of free
RX descriptors drops to some fraction of the total descriptors.
However in practice, it seems like we're adding this interrupt
cause on every RX.  Fix the logic to treat (tail - head) as the
number of free entries rather than the number of used entries.

Signed-off-by: Alex Williamson <alex.williamson@hp.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/branches/stable_0_10_0@6867 c046a42c-6fe2-441c-8c8c-71466251a162
hw/e1000.c