igbe: Fix descriptor cache bug.
authorSteve Reinhardt <steve.reinhardt@amd.com>
Thu, 21 May 2009 04:52:32 +0000 (21:52 -0700)
committerSteve Reinhardt <steve.reinhardt@amd.com>
Thu, 21 May 2009 04:52:32 +0000 (21:52 -0700)
src/dev/i8254xGBe.hh

index 8020b7091c0cf39c4d24a957ccbe2085c5517b66..5ae90eebc82b25510ff9f536be639724e2aa053b 100644 (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);