Do not increment collision counter if transmit have failed.
Transmission error in tun(4) is queueing error(i.e. ENOBUFS) and it has nothing to do with collision. Reported by: Zeus V Panchenko (zeus <> ibs dot dn dot ua)
This commit is contained in:
parent
f9de8782aa
commit
26b8066bce
@ -661,10 +661,8 @@ tunoutput(
|
||||
}
|
||||
|
||||
error = (ifp->if_transmit)(ifp, m0);
|
||||
if (error) {
|
||||
ifp->if_collisions++;
|
||||
if (error)
|
||||
return (ENOBUFS);
|
||||
}
|
||||
ifp->if_opackets++;
|
||||
return (0);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user