NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: kern/41679



The following reply was made to PR kern/41679; it has been noted by GNATS.

From: Wolfgang Solfrank <Wolfgang%Solfrank.net@localhost>
To: gnats-bugs%NetBSD.org@localhost
Cc: 
Subject: Re: kern/41679
Date: Wed, 13 Jan 2010 14:45:03 +0100

 This is a multi-part message in MIME format.
 --------------080900090201020500030809
 Content-Type: text/plain; charset=UTF-8; format=flowed
 Content-Transfer-Encoding: 7bit
 
 Hi,
 
 the problem isn't really that the emulated ethernet is too slow, but
 that the re driver tries to use a mode of the device that the qemu
 emulation doesn't support. (Actually, there is a compile time flag
 in qemu which would implement this, but this isn't defined by default
 and thus not by most installations of qemu, including the one used
 by xen.)
 
 The attached patch fixes the problem for me. Can you try it? (Sorry,
 the patch is against current, but it should apply cleanly against
 netbsd-5-0, too.)
 
 Probably, the define of RTK_QEMU at the start of rtl8169.c is far from
 optimal, and indeed, I intend to change that for the final commit, but
 it should do for the test.
 
 Ciao,
 Wolfgang
 -- 
 Wolfgang%Solfrank.net@localhost                                Wolfgang 
Solfrank
 
 
 --------------080900090201020500030809
 Content-Type: text/plain;
  name="diffs"
 Content-Transfer-Encoding: base64
 Content-Disposition: attachment;
  filename="diffs"
 
 SW5kZXg6IHN5cy9kZXYvaWMvcnRsODE2OS5jCj09PT09PT09PT09PT09PT09PT09PT09PT09
 PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT0KUkNTIGZpbGU6IC9j
 dnNyb290L3NyYy9zeXMvZGV2L2ljL3J0bDgxNjkuYyx2CnJldHJpZXZpbmcgcmV2aXNpb24g
 MS4xMjgKZGlmZiAtdSAtcjEuMTI4IHJ0bDgxNjkuYwotLS0gc3lzL2Rldi9pYy9ydGw4MTY5
 LmMJMTUgU2VwIDIwMDkgMTk6Mjk6MTcgLTAwMDAJMS4xMjgKKysrIHN5cy9kZXYvaWMvcnRs
 ODE2OS5jCTEzIEphbiAy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