From owner-freebsd-net@FreeBSD.ORG Wed Sep 26 17:38:47 2007 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 174B416A419 for ; Wed, 26 Sep 2007 17:38:47 +0000 (UTC) (envelope-from jfvogel@gmail.com) Received: from ug-out-1314.google.com (ug-out-1314.google.com [66.249.92.173]) by mx1.freebsd.org (Postfix) with ESMTP id B32AB13C48E for ; Wed, 26 Sep 2007 17:38:46 +0000 (UTC) (envelope-from jfvogel@gmail.com) Received: by ug-out-1314.google.com with SMTP id a2so1370085ugf for ; Wed, 26 Sep 2007 10:38:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; bh=+p93hUmBzaHuxqwjUEdsV4Pxry41K0wqvcXywvO0ejc=; b=MWrXjCGkMqPdH8wKfBaFF0uAqDvt/+QEyW/slMnOPLJWqmmGCx9fTR9XNnLS1+24SDe8RDSPZg+cUNsHx8OWxlHLmVO5LmMzDgOpHS1VK/Ofh9sSVwC1tk6XzgZse9z19OaAIsZ4/F5EHZeolj/wun+kqMJjmeNsrrrY2I0Yk3M= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=DqFFgSC+tZqHpmDOqwB/dUy5C9UGlVIerdzpK25bX0r0WWp6TImJxGXadlrEZHRbiA5o9V4AmSeag6kIz5Zg9SJp9k4JP5LS457UOPOVHD7bla0/mlAmPB/cynfq93keBA0dNAZXdfDMJGsotS6eFDQsC+UnjD045Qmng2Qo0So= Received: by 10.66.249.16 with SMTP id w16mr2507095ugh.1190828325097; Wed, 26 Sep 2007 10:38:45 -0700 (PDT) Received: by 10.86.100.19 with HTTP; Wed, 26 Sep 2007 10:38:45 -0700 (PDT) Message-ID: <2a41acea0709261038q1613525avadadfd68c5ab2789@mail.gmail.com> Date: Wed, 26 Sep 2007 10:38:45 -0700 From: "Jack Vogel" To: "Jon Otterholm" In-Reply-To: <46FA736A.7000206@ide.resurscentrum.se> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <46FA736A.7000206@ide.resurscentrum.se> Cc: freebsd-net@freebsd.org Subject: Re: if_em and if_vlan 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, 26 Sep 2007 17:38:47 -0000 This is not an issue in my current driver base, I am having our test group do some checking since I am not aware of the specific change that fixed this, I am not sure if the CURRENT code has the problem or not, also being tested. Jack On 9/26/07, Jon Otterholm wrote: > Hi. > > I get "Device busy" when trying to change VLAN-id on a sub-if to em0: > > [root@host /home/user]# ifconfig vlan100 vlan 100 vlandev em0 > ifconfig: SIOCSETVLAN: Device busy > > [root@host /home/user]# dmesg | grep em0 > em0: port > 0x4000-0x401f mem 0xee200000-0xee21ffff irq 16 at device 0.0 on pci9 > > [root@host /home/user]# pciconf -vl > em0@pci9:0:0: class=0x020000 card=0x108c15d9 chip=0x108c8086 rev=0x03 > hdr=0x00 > vendor = 'Intel Corporation' > device = 'PRO/1000 PM' > class = network > subclass = ethernet > > [root@host /home/user]# uname -a > FreeBSD host 6.2-STABLE FreeBSD 6.2-STABLE #1: Tue Sep 25 22:29:05 CEST > 2007 user@host:/usr/obj/usr/src/sys/host i386 > > It works if I create a new interface like: > > [root@host /home/user]# ifconfig vlan100 create > > and setting the vid and vlandev: > > [root@host /home/user]# ifconfig vlan100 vlan 100 vlandev em0 > > But when I try to change the setting: > > [root@host /home/user]# ifconfig vlan100 vlan 100 vlandev em1 > ifconfig: SIOCSETVLAN: Device busy > > Even if I destroy the interface and create it again I get "Device busy": > > [root@host /home/user]# ifconfig vlan100 destroy > [root@host /home/user]# ifconfig vlan100 create > [root@host /home/user]# ifconfig vlan100 vlan 100 vlandev em1 > ifconfig: SIOCSETVLAN: Device busy > > Motherboard is Supermicro PDSMi-LN4+ with four em-interfaces. > > How do I solve this? > > //Jon > _______________________________________________ > freebsd-net@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-net > To unsubscribe, send any mail to "freebsd-net-unsubscribe@freebsd.org" >