svn commit: r248851 - head/sys/net

Mark Johnston markj at FreeBSD.org
Thu Mar 28 20:37:07 UTC 2013


Author: markj
Date: Thu Mar 28 20:37:07 2013
New Revision: 248851
URL: http://svnweb.freebsd.org/changeset/base/248851

Log:
  Ignore interface renames instead of removing the interface from the bridge
  group.
  
  Reviewed by:	rstone
  Approved by:	rstone (co-mentor)
  Sponsored by:	Sandvine Incorporated
  MFC after:	1 week

Modified:
  head/sys/net/if_bridge.c

Modified: head/sys/net/if_bridge.c
==============================================================================
--- head/sys/net/if_bridge.c	Thu Mar 28 20:35:37 2013	(r248850)
+++ head/sys/net/if_bridge.c	Thu Mar 28 20:37:07 2013	(r248851)
@@ -1700,6 +1700,9 @@ bridge_ifdetach(void *arg __unused, stru
 	struct bridge_softc *sc = ifp->if_bridge;
 	struct bridge_iflist *bif;
 
+	if (ifp->if_flags & IFF_RENAMING)
+		return;
+
 	/* Check if the interface is a bridge member */
 	if (sc != NULL) {
 		BRIDGE_LOCK(sc);


More information about the svn-src-all mailing list