igbe: Fix descriptor cache bug.
This commit is contained in:
parent
8d2e51c7f5
commit
b3d0a01eb3
1 changed files with 1 additions and 1 deletions
|
@ -304,7 +304,7 @@ class IGbE : public EtherDevice
|
||||||
int descLeft() const
|
int descLeft() const
|
||||||
{
|
{
|
||||||
int left = unusedCache.size();
|
int left = unusedCache.size();
|
||||||
if (cachePnt >= descTail())
|
if (cachePnt > descTail())
|
||||||
left += (descLen() - cachePnt + descTail());
|
left += (descLen() - cachePnt + descTail());
|
||||||
else
|
else
|
||||||
left += (descTail() - cachePnt);
|
left += (descTail() - cachePnt);
|
||||||
|
|
Loading…
Reference in a new issue