qemu-devel
[Top][All Lists]
Advanced

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

Re: [Qemu-devel] [PATCH ] lan9118: fix multicast filtering


From: Stefan Hajnoczi
Subject: Re: [Qemu-devel] [PATCH ] lan9118: fix multicast filtering
Date: Fri, 24 Aug 2012 11:13:02 +0100

On Fri, Aug 24, 2012 at 11:08 AM, Aurelien Jarno <address@hidden> wrote:
> On Fri, Aug 24, 2012 at 10:47:47AM +0100, Stefan Hajnoczi wrote:
>> On Thu, Aug 23, 2012 at 4:39 PM, Aurelien Jarno <address@hidden> wrote:
>> > The lan9118 emulation tries to compute the multicast index by calling
>> > directly the crc32() function from zlib, but fails to get the correct
>> > result.
>> >
>> > Use the common compute_mcast_idx() function instead, which gives the
>> > correct result. This fixes IPv6 support.
>> >
>> > Signed-off-by: Aurelien Jarno <address@hidden>
>> > ---
>> >  hw/lan9118.c |    2 +-
>> >  1 file changed, 1 insertion(+), 1 deletion(-)
>>
>> There is another crc32() call in hw/lan9118.c:lan9118_receive().  Can
>> that be replaced too and then #include <zlib.h> can be dropped?
>>
>
> I don't think so, at least not easily. This is a different call (the
> length is variable), and most emulated NICs have a call to crc32(), but
> in slightly different ways.

Okay.  I haven't looked at the datasheet for this NIC, so I have no
more input to this patch except that it looks fine.

Stefan



reply via email to

[Prev in Thread] Current Thread [Next in Thread]