Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 13 Jan 2015 07:38:30 +0000 (UTC)
From:      Gleb Smirnoff <glebius@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-projects@freebsd.org
Subject:   svn commit: r277111 - projects/ifnet/sys/net
Message-ID:  <201501130738.t0D7cUXJ035288@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: glebius
Date: Tue Jan 13 07:38:29 2015
New Revision: 277111
URL: https://svnweb.freebsd.org/changeset/base/277111

Log:
  IF_CAPABILITIES shouldn't be modified after attach.

Modified:
  projects/ifnet/sys/net/if.c

Modified: projects/ifnet/sys/net/if.c
==============================================================================
--- projects/ifnet/sys/net/if.c	Tue Jan 13 07:35:30 2015	(r277110)
+++ projects/ifnet/sys/net/if.c	Tue Jan 13 07:38:29 2015	(r277111)
@@ -1550,21 +1550,6 @@ if_set_special(if_t ifp, ift_feature f)
 {
 
 	switch (f) {
-	case IF_CAPABILITIES:
-	{
-		uint64_t capabilities, capenable;
-		/*
-		 * If IF_CAPABILITIES have been reduced, then IF_CAPENABLE
-		 * should be reduced, too.
-		 */
-		capabilities = if_get(ifp, IF_CAPABILITIES);
-		capenable = if_get(ifp, IF_CAPENABLE);
-		if ((capenable & capabilities) != capenable) {
-			capenable &= capabilities;
-			if_set(ifp, IF_CAPENABLE, capenable);
-		}
-		break;
-	}
 	case IF_CAPENABLE:
 		/*
 		 * Modifying if_capenable may require extra actions, e.g.



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