IGbE: Fix two e1000 driver bugs that I missed before.
This commit is contained in:
parent
10fc45da27
commit
37ffe52ca4
1 changed files with 3 additions and 1 deletions
|
@ -1108,6 +1108,7 @@ IGbE::RxDescCache::unserialize(Checkpoint *cp, const std::string §ion)
|
|||
|
||||
IGbE::TxDescCache::TxDescCache(IGbE *i, const std::string n, int s)
|
||||
: DescCache<TxDesc>(i,n, s), pktDone(false), isTcp(false), pktWaiting(false),
|
||||
completionAddress(0), completionEnabled(false),
|
||||
useTso(false), pktEvent(this), headerEvent(this), nullEvent(this)
|
||||
|
||||
{
|
||||
|
@ -1319,7 +1320,8 @@ IGbE::TxDescCache::pktComplete()
|
|||
|
||||
|
||||
if ((!TxdOp::eop(desc) && !useTso) ||
|
||||
(pktPtr->length < ( tsoMss + tsoHeaderLen) && tsoTotalLen != tsoUsedLen)) {
|
||||
(pktPtr->length < ( tsoMss + tsoHeaderLen) &&
|
||||
tsoTotalLen != tsoUsedLen && useTso)) {
|
||||
assert(!useTso || (tsoDescBytesUsed == TxdOp::getLen(desc)));
|
||||
unusedCache.pop_front();
|
||||
usedCache.push_back(desc);
|
||||
|
|
Loading…
Reference in a new issue