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:
Gleb Smirnoff 2015-01-12 09:41:12 +00:00
parent 18cc2ff047
commit fc7ea8b690
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=277056

View File

@ -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
*/