From b3d0a01eb3eb8b2025fc0704ef675bc677961e78 Mon Sep 17 00:00:00 2001 From: Steve Reinhardt Date: Wed, 20 May 2009 21:52:32 -0700 Subject: [PATCH] igbe: Fix descriptor cache bug. --- src/dev/i8254xGBe.hh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/dev/i8254xGBe.hh b/src/dev/i8254xGBe.hh index 8020b7091..5ae90eebc 100644 --- a/src/dev/i8254xGBe.hh +++ b/src/dev/i8254xGBe.hh @@ -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); -- 2.30.2