Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 13 Mar 2017 09:04:10 +0000 (UTC)
From:      "Andrey V. Elsukov" <ae@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r315192 - head/sys/net
Message-ID:  <201703130904.v2D94AwZ052098@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: ae
Date: Mon Mar 13 09:04:10 2017
New Revision: 315192
URL: https://svnweb.freebsd.org/changeset/base/315192

Log:
  Ignore ifnet renaming in the bpf ifnet departure handler.
  
  PR:		213015
  MFC after:	1 week

Modified:
  head/sys/net/bpf.c

Modified: head/sys/net/bpf.c
==============================================================================
--- head/sys/net/bpf.c	Mon Mar 13 08:04:25 2017	(r315191)
+++ head/sys/net/bpf.c	Mon Mar 13 09:04:10 2017	(r315192)
@@ -2678,6 +2678,10 @@ bpf_ifdetach(void *arg __unused, struct 
 	struct bpf_if *bp, *bp_temp;
 	int nmatched = 0;
 
+	/* Ignore ifnet renaming. */
+	if (ifp->if_flags & IFF_RENAMING)
+		return;
+
 	BPF_LOCK();
 	/*
 	 * Find matching entries in free list.



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