Fix jumbo error being reported multiple times
Also found and fixed another related bug where the loop to check pkt size for trunc/jumbo ran for frameCount instead of frameSizeVariableCount() - this change will reduce preflight check time when frameSizeVariableCount is less than frameCount Fixes #290
This commit is contained in:
parent
44a9eada48
commit
64fe90e5b7
@ -608,7 +608,7 @@ bool StreamBase::preflightCheck(QStringList &result) const
|
||||
bool pass = true;
|
||||
bool chkTrunc = true;
|
||||
bool chkJumbo = true;
|
||||
int count = isFrameSizeVariable() ? frameCount() : 1;
|
||||
int count = isFrameSizeVariable() ? frameSizeVariableCount() : 1;
|
||||
|
||||
for (int i = 0; i < count; i++)
|
||||
{
|
||||
@ -627,6 +627,7 @@ bool StreamBase::preflightCheck(QStringList &result) const
|
||||
{
|
||||
result << QObject::tr("Jumbo frames may be truncated or dropped "
|
||||
"if not supported by the hardware");
|
||||
chkJumbo = false;
|
||||
pass = false;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user