From owner-freebsd-bugs@FreeBSD.ORG Wed May 23 02:20:02 2012 Return-Path: Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 62DB01065673 for ; Wed, 23 May 2012 02:20:02 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 3C4358FC0C for ; Wed, 23 May 2012 02:20:02 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.5/8.14.5) with ESMTP id q4N2K2up003675 for ; Wed, 23 May 2012 02:20:02 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.5/8.14.5/Submit) id q4N2K2S4003674; Wed, 23 May 2012 02:20:02 GMT (envelope-from gnats) Resent-Date: Wed, 23 May 2012 02:20:02 GMT Resent-Message-Id: <201205230220.q4N2K2S4003674@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Arnaud Lacombe Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 36EB3106564A for ; Wed, 23 May 2012 02:16:29 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from red.freebsd.org (red.freebsd.org [IPv6:2001:4f8:fff6::22]) by mx1.freebsd.org (Postfix) with ESMTP id 09CC28FC0C for ; Wed, 23 May 2012 02:16:29 +0000 (UTC) Received: from red.freebsd.org (localhost [127.0.0.1]) by red.freebsd.org (8.14.4/8.14.4) with ESMTP id q4N2GSdk056104 for ; Wed, 23 May 2012 02:16:28 GMT (envelope-from nobody@red.freebsd.org) Received: (from nobody@localhost) by red.freebsd.org (8.14.4/8.14.4/Submit) id q4N2GSBM056083; Wed, 23 May 2012 02:16:28 GMT (envelope-from nobody) Message-Id: <201205230216.q4N2GSBM056083@red.freebsd.org> Date: Wed, 23 May 2012 02:16:28 GMT From: Arnaud Lacombe To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Cc: Subject: kern/168246: Multiple em(4) not working with qemu X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 23 May 2012 02:20:02 -0000 >Number: 168246 >Category: kern >Synopsis: Multiple em(4) not working with qemu >Confidential: no >Severity: non-critical >Priority: medium >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Wed May 23 02:20:01 UTC 2012 >Closed-Date: >Last-Modified: >Originator: Arnaud Lacombe >Release: 9.0-RELEASE >Organization: n/a >Environment: >Description: It would seem that FreeBSD is unable to deal correctly with qemu's networking when *more* than one e1000 interface is exported. TX works, but RX seems broken. re(4) in the exact same configuration works fine. >How-To-Repeat: # qemu -nographic -hda /vm/hdd-freebsd-i386 \ -net nic -net tap,script=/vm/ifup \ -net nic -net tap,script=/vm/ifup \ -net nic -net tap,script=/vm/ifup \ -net nic -net tap,script=/vm/ifup \ -net nic -net tap,script=/vm/ifup \ -net nic -net tap,script=/vm/ifup Copyright (c) 1992-2012 The FreeBSD Project. Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994 The Regents of the University of California. All rights reserved. FreeBSD is a registered trademark of The FreeBSD Foundation. FreeBSD 9.0-RELEASE #0: Tue Jan 3 07:15:25 UTC 2012 root@obrian.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC i386 CPU: QEMU Virtual CPU version 0.14.50 (2660.53-MHz 686-class CPU) Origin = "GenuineIntel" Id = 0x633 Family = 6 Model = 3 Stepping = 3 Features=0x781abf9 Features2=0x80800001 real memory = 134205440 (127 MB) avail memory = 112107520 (106 MB) [...] em0: port 0xc040-0xc07f mem 0xf2020000-0xf203ffff irq 11 at device 3.0 on pci0 em0: Memory Access and/or Bus Master bits were not set! em0: Ethernet address: 52:54:00:12:34:56 [...] em5: port 0xc180-0xc1bf mem 0xf2160000-0xf217ffff irq 11 at device 8.0 on pci0 em5: Memory Access and/or Bus Master bits were not set! em5: Ethernet address: 52:54:00:12:34:5b [...] # ifconfig em0 10.0.255.2 # ping 10.0.255.1 PING 10.0.255.1 (10.0.255.1): 56 data bytes ping: sendto: Host is down ping: sendto: Host is down ping: sendto: Host is down >Fix: please. >Release-Note: >Audit-Trail: >Unformatted: