igbe: Fix descriptor cache bug.

This commit is contained in:
Steve Reinhardt 2009-05-20 21:52:32 -07:00
parent 8d2e51c7f5
commit b3d0a01eb3

View file

@ -304,7 +304,7 @@ class IGbE : public EtherDevice
int descLeft() const
{
int left = unusedCache.size();
if (cachePnt >= descTail())
if (cachePnt > descTail())
left += (descLen() - cachePnt + descTail());
else
left += (descTail() - cachePnt);