Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 7 Sep 2013 13:50:13 +0000 (UTC)
From:      Davide Italiano <davide@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r255360 - head/sys/net
Message-ID:  <201309071350.r87DoDUb005690@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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");



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