Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1J4e9k-0001go-58 for qemu-devel@nongnu.org; Tue, 18 Dec 2007 10:14:52 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1J4e9j-0001fR-0Q for qemu-devel@nongnu.org; Tue, 18 Dec 2007 10:14:51 -0500 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1J4e9i-0001fD-OZ for qemu-devel@nongnu.org; Tue, 18 Dec 2007 10:14:50 -0500 Received: from main.gmane.org ([80.91.229.2] helo=ciao.gmane.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1J4e9i-0006ae-6w for qemu-devel@nongnu.org; Tue, 18 Dec 2007 10:14:50 -0500 Received: from root by ciao.gmane.org with local (Exim 4.43) id 1J4e55-0001j2-4P for qemu-devel@nongnu.org; Tue, 18 Dec 2007 15:10:03 +0000 Received: from 152.246.120.148.in-addr.arpa ([148.120.246.152]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 18 Dec 2007 15:10:03 +0000 Received: from bmork by 152.246.120.148.in-addr.arpa with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 18 Dec 2007 15:10:03 +0000 From: =?iso-8859-1?Q?Bj=F8rn_Mork?= Date: Tue, 18 Dec 2007 15:44:41 +0100 Message-ID: <874peg83l2.fsf@obelix.mork.no> References: <46949A59.8070104@xtra.co.nz> <46950F50.5050502@mail.berlios.de> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Sender: news Subject: [Qemu-devel] Re: multicast and the eepro100 driver Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Stefan Weil writes: > eepro100.c is my work, so maybe I can help you. > > First of all: there exists a newer version of eepro100.c which > fixes some bugs of the CVS version and largely improves > support for big endian hosts and targets. Get it from > http://svn.berlios.de/wsvn/ar7-firmware/qemu/trunk/hw/eepro100.c?op=file&rev=0&sc=0 > > I am still working on this new version, because support for big endian > hosts is still untested. > > If you define macro DEBUG_EEPRO100 in eepro100.c, you will get > debugging messages which show the frames sent and received. > > Multicast frames should be received, but I never tested this, > so maybe there is a bug, and I know that I did not implement > all functions needed for multicast. Hello, I just tried your new version of eepro100.c and can confirm that multicast reception does work with this version. Found one bug (which does not prevent it from working): The length of the multicast list seems have a byte/number confusion. I get: EE100 set_multicast_list multicast list, 0 entries EE100 set_multicast_list multicast list, 0 entries EE100 set_multicast_list multicast list, 6 entries EE100 set_multicast_list multicast entry 01 00 5e 00 00 01 EE100 set_multicast_list multicast entry 00 00 00 00 00 00 EE100 set_multicast_list multicast entry 00 00 00 00 00 00 EE100 set_multicast_list multicast entry 00 00 00 00 00 00 EE100 set_multicast_list multicast entry 00 00 00 00 00 00 EE100 set_multicast_list multicast entry 00 00 00 00 00 00 EE100 set_multicast_list multicast list, 12 entries EE100 set_multicast_list multicast entry 01 00 5e 00 00 01 EE100 set_multicast_list multicast entry 01 00 5e 00 00 06 EE100 set_multicast_list multicast entry 00 00 00 00 00 00 EE100 set_multicast_list multicast entry 00 00 00 00 00 00 EE100 set_multicast_list multicast entry 00 00 00 00 00 00 EE100 set_multicast_list multicast entry 00 00 00 00 00 00 EE100 set_multicast_list multicast entry 00 00 00 00 00 00 EE100 set_multicast_list multicast entry 00 00 00 00 00 00 EE100 set_multicast_list multicast entry 00 00 00 00 00 00 EE100 set_multicast_list multicast entry 00 00 00 00 00 00 EE100 set_multicast_list multicast entry 00 00 00 00 00 00 EE100 set_multicast_list multicast entry 00 00 00 00 00 00 EE100 set_multicast_list multicast list, 18 entries EE100 set_multicast_list multicast entry 01 00 5e 00 00 01 EE100 set_multicast_list multicast entry 01 00 5e 00 00 05 EE100 set_multicast_list multicast entry 01 00 5e 00 00 06 EE100 set_multicast_list multicast entry 00 00 00 00 00 00 EE100 set_multicast_list multicast entry 00 00 00 00 00 00 EE100 set_multicast_list multicast entry 00 00 00 00 00 00 EE100 set_multicast_list multicast entry 00 00 00 00 00 00 EE100 set_multicast_list multicast entry 00 00 00 00 00 00 EE100 set_multicast_list multicast entry 00 00 00 00 00 00 EE100 set_multicast_list multicast entry 00 00 00 00 00 00 EE100 set_multicast_list multicast entry 00 00 00 00 00 00 EE100 set_multicast_list multicast entry 00 00 00 00 00 00 EE100 set_multicast_list multicast entry 00 00 00 00 00 00 EE100 set_multicast_list multicast entry 00 00 00 00 00 00 EE100 set_multicast_list multicast entry 00 00 00 00 00 00 EE100 set_multicast_list multicast entry 00 00 00 00 00 00 EE100 set_multicast_list multicast entry 00 00 00 00 00 00 EE100 set_multicast_list multicast entry 00 00 00 00 00 00 This patch fixes this: --- /home/bjorn/tmp/eepro100.c 2007-12-18 14:52:48.000000000 +0100 +++ /usr/local/src/qemu-0.9.0+20070816/hw/eepro100.c 2007-12-18 15:37:40.000000000 +0100 @@ -905,7 +903,7 @@ TRACE(OTHER, logout("configuration: %s\n", nic_dump(&s->configuration[0], 16))); break; case CmdMulticastList: - set_multicast_list(s, s->tx.tbd_array_addr & BITS(13, 0)); + set_multicast_list(s, (s->tx.tbd_array_addr & BITS(13, 0)) / 6); break; case CmdTx: tx_command(s); Thanks for your work on this! Bjørn -- How can you say that old people are inherently superior to unborn people