Date: Sat, 30 Jun 2012 19:09:02 +0000 (UTC) From: Andrew Thompson <thompsa@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r237852 - head/sys/net Message-ID: <201206301909.q5UJ92LA036534@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: thompsa Date: Sat Jun 30 19:09:02 2012 New Revision: 237852 URL: http://svn.freebsd.org/changeset/base/237852 Log: Add the same check as vlan(4) where we ignore the ifnet departure event if the interface is just being renamed. PR: kern/169557 Submitted by: Mark Johnston MFC after: 3 days Modified: head/sys/net/if_lagg.c Modified: head/sys/net/if_lagg.c ============================================================================== --- head/sys/net/if_lagg.c Sat Jun 30 18:58:21 2012 (r237851) +++ head/sys/net/if_lagg.c Sat Jun 30 19:09:02 2012 (r237852) @@ -797,6 +797,9 @@ lagg_port_ifdetach(void *arg __unused, s if ((lp = ifp->if_lagg) == NULL) return; + /* If the ifnet is just being renamed, don't do anything. */ + if (ifp->if_flags & IFF_RENAMING) + return; sc = lp->lp_softc;
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201206301909.q5UJ92LA036534>