Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 12 Jan 2015 09:41:13 +0000 (UTC)
From:      Gleb Smirnoff <glebius@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r277056 - head/sys/netinet
Message-ID:  <201501120941.t0C9fDNn001706@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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
 	 */



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201501120941.t0C9fDNn001706>