Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 4 Dec 2006 18:18:57 GMT
From:      Marko Zec <zec@FreeBSD.org>
To:        Perforce Change Reviews <perforce@FreeBSD.org>
Subject:   PERFORCE change 111039 for review
Message-ID:  <200612041818.kB4IIvsL086187@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=111039

Change 111039 by zec@zec_tca51 on 2006/12/04 18:18:30

	Set per-thread vnet affinity in bpfclose().

Affected files ...

.. //depot/projects/vimage/src/sys/net/bpf.c#3 edit

Differences ...

==== //depot/projects/vimage/src/sys/net/bpf.c#3 (text+ko) ====

@@ -439,8 +439,11 @@
 	BPFD_UNLOCK(d);
 	funsetown(&d->bd_sigio);
 	mtx_lock(&bpf_mtx);
-	if (d->bd_bif)
+	if (d->bd_bif) {
+		CURVNETB_SET(d->bd_bif->bif_ifp->if_vnetb);
 		bpf_detachd(d);
+		CURVNETB_RESTORE();
+	}
 	mtx_unlock(&bpf_mtx);
 	selwakeuppri(&d->bd_sel, PRINET);
 #ifdef MAC



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