diff options
author | Luiz Otavio O Souza <luiz@netgate.com> | 2015-10-26 12:52:47 -0500 |
---|---|---|
committer | Luiz Otavio O Souza <luiz@netgate.com> | 2015-10-26 12:52:47 -0500 |
commit | 4820bf8d15308af1f92485a16748492c0dab1c04 (patch) | |
tree | 69d246bb3571f072e3297a6c75d8c4687669ec93 | |
parent | 81b55bb536dd73f0a95d624d9d0a514998bb24ad (diff) | |
download | FreeBSD-src-4820bf8d15308af1f92485a16748492c0dab1c04.zip FreeBSD-src-4820bf8d15308af1f92485a16748492c0dab1c04.tar.gz |
MFC r277056:
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.
TAG: tryforward
-rw-r--r-- | sys/netinet/ip_fastfwd.c | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/sys/netinet/ip_fastfwd.c b/sys/netinet/ip_fastfwd.c index 0772cf0..3db6311 100644 --- a/sys/netinet/ip_fastfwd.c +++ b/sys/netinet/ip_fastfwd.c @@ -496,18 +496,6 @@ passout: 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); - /* would send source quench here but that is depreciated */ - goto drop; - } -#endif - /* * Check if media link state of interface is not down */ |