summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLuiz Otavio O Souza <luiz@netgate.com>2015-10-26 12:52:47 -0500
committerLuiz Otavio O Souza <luiz@netgate.com>2015-10-26 12:52:47 -0500
commit4820bf8d15308af1f92485a16748492c0dab1c04 (patch)
tree69d246bb3571f072e3297a6c75d8c4687669ec93
parent81b55bb536dd73f0a95d624d9d0a514998bb24ad (diff)
downloadFreeBSD-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.c12
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
*/
OpenPOWER on IntegriCloud