Remove incorrect layering violating code that:
a) assumed that ifqueue length is measured in bytes, instead of packets b) assumed that any interface has working ifqueue c) incremented global counter instead of ifi_oqdrops Sponsored by: Nginx, Inc.
This commit is contained in:
parent
18cc2ff047
commit
fc7ea8b690
@ -495,17 +495,6 @@ ip_fastforward(struct mbuf *m)
|
||||
goto consumed;
|
||||
}
|
||||
|
||||
#ifndef ALTQ
|
||||
/*
|
||||
* Check if there is enough space in the interface queue
|
||||
*/
|
||||
if ((ifp->if_snd.ifq_len + ip_len / ifp->if_mtu + 1) >=
|
||||
ifp->if_snd.ifq_maxlen) {
|
||||
IPSTAT_INC(ips_odropped);
|
||||
goto drop;
|
||||
}
|
||||
#endif
|
||||
|
||||
/*
|
||||
* Check if media link state of interface is not down
|
||||
*/
|
||||
|
Loading…
Reference in New Issue
Block a user