kern/169557: [patch][lagg] handle interface renames

Mark Johnston markjdb at gmail.com
Fri Jun 29 21:20:13 UTC 2012


The following reply was made to PR kern/169557; it has been noted by GNATS.

From: Mark Johnston <markjdb at gmail.com>
To: bug-followup at FreeBSD.org
Cc:  
Subject: Re: kern/169557: [patch][lagg] handle interface renames
Date: Fri, 29 Jun 2012 17:15:00 -0400

 --mYCpIKhGyMATD0i+
 Content-Type: text/plain; charset=us-ascii
 Content-Disposition: inline
 
 Argh, this is what I get for manually copying the patch to the tree on
 my laptop. =(
 
 I'm checking the wrong flag in the above patch. The attached patch
 corrects it.
 
 Thanks,
 -Mark
 
 --mYCpIKhGyMATD0i+
 Content-Type: text/plain; charset=us-ascii
 Content-Disposition: attachment; filename="lagg_handle_rename.patch.txt"
 
 diff --git a/sys/net/if_lagg.c b/sys/net/if_lagg.c
 index 9041e18..503e76e 100644
 --- a/sys/net/if_lagg.c
 +++ b/sys/net/if_lagg.c
 @@ -797,6 +797,8 @@ lagg_port_ifdetach(void *arg __unused, struct ifnet *ifp)
  
  	if ((lp = ifp->if_lagg) == NULL)
  		return;
 +	if (ifp->if_flags & IFF_RENAMING)
 +		return;
  
  	sc = lp->lp_softc;
  
 
 --mYCpIKhGyMATD0i+--


More information about the freebsd-bugs mailing list