From owner-freebsd-net@FreeBSD.ORG Wed Jan 7 22:00:00 2009 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E886D106582B for ; Wed, 7 Jan 2009 21:59:59 +0000 (UTC) (envelope-from jfvogel@gmail.com) Received: from wa-out-1112.google.com (wa-out-1112.google.com [209.85.146.177]) by mx1.freebsd.org (Postfix) with ESMTP id AC6458FC18 for ; Wed, 7 Jan 2009 21:59:59 +0000 (UTC) (envelope-from jfvogel@gmail.com) Received: by wa-out-1112.google.com with SMTP id m34so4803301wag.27 for ; Wed, 07 Jan 2009 13:59:59 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:cc:in-reply-to:mime-version:content-type:references; bh=HY164/IR2hxD3At+4ZTmWjFl+sjqy4RumRjBsMg15O4=; b=M85CQv5v2/woNxxOTm9eqwzHYbJG+vwUgmV5geybkFoklATsESoXL0eAeidrynlb7t EqI4wNRMUec04m5Igt2UUdcXjkrwtrhQy1EuHUGKoUqrgZfxpMv9tep1Ym/4C3253grA l53jBFBhhoLoQEpV4GCrJKIUeTFBbSisfnVSE= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version :content-type:references; b=M2w5EWWoqi0Ak7OnfS3hlCqEAjQuY3COdPWzW239rlVOv6ucsIBsuwjAfKfS+qiMg7 bzVerBhyBTwF78R0VbIq2vmAl77ONwvfI3R7nE4qIuPeGPk53lkmsx+OHHDa1xGAxpCV oReXSOG3PtxQb7Lee7D65lIwkrLAk3SOyHenw= Received: by 10.114.111.1 with SMTP id j1mr1987941wac.153.1231365598724; Wed, 07 Jan 2009 13:59:58 -0800 (PST) Received: by 10.114.157.9 with HTTP; Wed, 7 Jan 2009 13:59:58 -0800 (PST) Message-ID: <2a41acea0901071359w3f41465ajb8206cdef5b7b680@mail.gmail.com> Date: Wed, 7 Jan 2009 13:59:58 -0800 From: "Jack Vogel" To: "Sam Leffler" In-Reply-To: <4964EC4F.8030507@freebsd.org> MIME-Version: 1.0 References: <000001c970a8$3fa45240$220f000a@mtl.com> <4964C2E9.1060301@bestunion.it> <000001c970d9$4403e590$220f000a@mtl.com> <4964EC4F.8030507@freebsd.org> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: Eitan Shefi , Angelo Turetta , Yony Yossef , freebsd-net@freebsd.org Subject: Re: VLAN interface management - unloading carrying driver hangs the machine X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 07 Jan 2009 22:00:03 -0000 On Wed, Jan 7, 2009 at 9:54 AM, Sam Leffler wrote: > Yony Yossef wrote: > >> Yony Yossef wrote: >>> >>> >>>> /sbin/ifconfig vlan3653 create >>>> >>>> Problem is when I assign an IP to the vlan interface. >>>> In that case, unloading the driver results in hanging the host. >>>> Does it sound familiar to anybody? >>>> >>>> >>> Well, surely I'd expect problems by doing so. >>> The correct way is to >>> >>> /sbin/ifconfig vlan3653 destroy >>> >>> before unloading the driver. >>> >>> Angelo. >>> >>> >> >> Thanks, I didn't know freebsd does not allow it. >> >> >> > This seems wrong. Someone should disallow the driver detach/unload. Please > file a PR about this so the issue is not lost. > > Sam > In many drivers, ahem, like mine, there is a test at detach and it will not allow it if there is a non-NULL trunk. Sounds like a broken driver needs to be fixed is all... Jack