svn commit: r255360 - head/sys/net

Davide Italiano davide at FreeBSD.org
Sat Sep 7 13:50:14 UTC 2013


Author: davide
Date: Sat Sep  7 13:50:13 2013
New Revision: 255360
URL: http://svnweb.freebsd.org/changeset/base/255360

Log:
  Don't clear the unused SI_CHEAPCLONE flag in tap_create()/tuncreate().
  
  Reviewed by:	kib

Modified:
  head/sys/net/if_tap.c
  head/sys/net/if_tun.c

Modified: head/sys/net/if_tap.c
==============================================================================
--- head/sys/net/if_tap.c	Sat Sep  7 13:45:44 2013	(r255359)
+++ head/sys/net/if_tap.c	Sat Sep  7 13:50:13 2013	(r255360)
@@ -409,8 +409,6 @@ tapcreate(struct cdev *dev)
 	const char		*name = NULL;
 	u_char			eaddr[6];
 
-	dev->si_flags &= ~SI_CHEAPCLONE;
-
 	/* allocate driver storage and create device */
 	tp = malloc(sizeof(*tp), M_TAP, M_WAITOK | M_ZERO);
 	mtx_init(&tp->tap_mtx, "tap_mtx", NULL, MTX_DEF);

Modified: head/sys/net/if_tun.c
==============================================================================
--- head/sys/net/if_tun.c	Sat Sep  7 13:45:44 2013	(r255359)
+++ head/sys/net/if_tun.c	Sat Sep  7 13:50:13 2013	(r255360)
@@ -361,8 +361,6 @@ tuncreate(const char *name, struct cdev 
 	struct tun_softc *sc;
 	struct ifnet *ifp;
 
-	dev->si_flags &= ~SI_CHEAPCLONE;
-
 	sc = malloc(sizeof(*sc), M_TUN, M_WAITOK | M_ZERO);
 	mtx_init(&sc->tun_mtx, "tun_mtx", NULL, MTX_DEF);
 	cv_init(&sc->tun_cv, "tun_condvar");


More information about the svn-src-head mailing list