Author: glebius Date: Mon Jan 12 09:41:12 2015 New Revision: 277056 URL: https://svnweb.freebsd.org/changeset/base/277056
Log: 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. Modified: head/sys/netinet/ip_fastfwd.c Modified: head/sys/netinet/ip_fastfwd.c ============================================================================== --- head/sys/netinet/ip_fastfwd.c Mon Jan 12 08:58:07 2015 (r277055) +++ head/sys/netinet/ip_fastfwd.c Mon Jan 12 09:41:12 2015 (r277056) @@ -495,17 +495,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); - goto drop; - } -#endif - /* * Check if media link state of interface is not down */ _______________________________________________ svn-src-head@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/svn-src-head To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"