svn commit: r277111 - projects/ifnet/sys/net

Gleb Smirnoff glebius at FreeBSD.org
Tue Jan 13 07:38:30 UTC 2015


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.


More information about the svn-src-projects mailing list