Bug 552574 - Guest could not join the multicast group with virtio NIC
Summary: Guest could not join the multicast group with virtio NIC
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 5
Classification: Red Hat
Component: kernel
Version: 5.5
Hardware: All
OS: Linux
medium
medium
Target Milestone: rc
: ---
Assignee: Herbert Xu
QA Contact: Virtualization Bugs
URL:
Whiteboard:
: 589032 670174 (view as bug list)
Depends On:
Blocks: 502912 589032 600363 670174
TreeView+ depends on / blocked
 
Reported: 2010-01-05 14:57 UTC by Amos Kong
Modified: 2018-11-14 17:48 UTC (History)
12 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
: 589032 (view as bug list)
Environment:
Last Closed: 2011-01-13 20:58:17 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
Add set_multicast_list to virtio_net (734 bytes, patch)
2010-07-02 09:49 UTC, Herbert Xu
no flags Details | Diff


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2011:0017 0 normal SHIPPED_LIVE Important: Red Hat Enterprise Linux 5.6 kernel security and bug fix update 2011-01-13 10:37:42 UTC

Description Amos Kong 2010-01-05 14:57:21 UTC
Guest could not join the multicast group with virtio NIC

Description of problem:

On kernel upstream, virtio-net driver has the MAC address filter support, so multicast can work. 

But when I boot do multicast test on VM(host rhel5.4, guest rhel5.4), guest could not join the multicast group.

multicast mac accress 01:00:5E:C0:01:64  -->  239.192.1.100

Boot command line: 
# qemu-kvm -name 'vm1' -monitor tcp:0:6001,server,nowait -drive file=/home/rebase/autotest/client/tests/kvm/images/RHEL-Server-5.4-64-virtio.raw,if=virtio,cache=writethrough,boot=on -net nic,vlan=0,model=virtio,macaddr=00:AE:8F:F3:8D:00 -net tap,vlan=0,ifname=virtio_0_6001,script=/home/rebase/autotest/client/tests/kvm/scripts/qemu-ifup-switch,downscript=no -m 512 -smp 1 -usbdevice tablet -rtc-td-hack -no-hpet -cpu qemu64,+sse2 -no-kvm-pit-reinjection -vnc :0


---------host
[root@dhcp-66-70-126 staf-kvm-devel]# uname -a
Linux dhcp-66-70-126.nay.redhat.com 2.6.18-164.el5 #1 SMP Tue Aug 18 15:51:48 EDT 2009 x86_64 x86_64 x86_64 GNU/Linux


---------guest
[root@localhost ~]# uname -a
Linux localhost.localdomain 2.6.18-164.2.1.el5 #1 SMP Mon Sep 21 04:37:42 EDT 2009 x86_64 x86_64 x86_64 GNU/Linux

[root@localhost ~]# lsmod |grep virtio
virtio_net             47169  0
virtio_blk             41417  3
virtio_pci             41417  0
virtio_ring            37441  1 virtio_pci
virtio                 39365  3 virtio_net,virtio_blk,virtio_pci

[root@localhost ~]# lspci |grep Eth
00:03.0 Ethernet controller: Qumranet, Inc. Virtio network device

[root@localhost ~]# ifconfig
eth0      Link encap:Ethernet  HWaddr 00:AE:8F:F3:8D:00
          inet addr:10.66.91.14  Bcast:10.66.91.255  Mask:255.255.255.0
          inet6 addr: fe80::2ae:8fff:fef3:8d00/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:1136 errors:0 dropped:0 overruns:0 frame:0
          TX packets:834 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:110642 (108.0 KiB)  TX bytes:114995 (112.2 KiB)

lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:1403 errors:0 dropped:0 overruns:0 frame:0
          TX packets:1403 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:4217308 (4.0 MiB)  TX bytes:4217308 (4.0 MiB)

[root@localhost ~]# ip maddr show eth0
2:      eth0
        link  01:00:5e:00:00:fb
        link  33:33:00:00:00:fb
        link  33:33:ff:f3:8d:00
        link  33:33:00:00:00:01
        link  01:00:5e:00:00:01
        inet  224.0.0.251
        inet  224.0.0.1
        inet6 ff02::fb
        inet6 ff02::1:fff3:8d00
        inet6 ff02::1

[root@localhost ~]# ip maddr add 01:00:5E:C0:01:64 dev eth0
ioctl: Invalid argument

[root@localhost ~]# ip maddr show eth0
2:      eth0
        link  01:00:5e:00:00:fb
        link  33:33:00:00:00:fb
        link  33:33:ff:f3:8d:00
        link  33:33:00:00:00:01
        link  01:00:5e:00:00:01
        inet  224.0.0.251
        inet  224.0.0.1
        inet6 ff02::fb
        inet6 ff02::1:fff3:8d00
        inet6 ff02::1
[root@localhost ~]#

Version-Release number of selected component (if applicable):
host:
[root@dhcp-66-70-126 staf-kvm-devel]# rpm -qa|grep kvm
etherboot-zroms-kvm-5.4.4-12.el5
etherboot-zroms-kvm-5.4.4-10.el5
kvm-debuginfo-83-142.el5
kvm-tools-83-142.el5
kvm-83-142.el5
kmod-kvm-83-142.el5
kvm-qemu-img-83-142.el5


How reproducible:

Steps to Reproduce:
1. Boot up a VM with virtio NIC
2. Join the guest the multicast group

  
Actual results:
Guest could not join the multicast group

Expected results:
Guest join the multicast group

Additional info:

Comment 1 Amos Kong 2010-01-08 07:35:02 UTC
It's a problem of virio-net driver, so change the Component to 'kernel'.
This problem also exist rhel5.5, and change Version to '5.5'.

Comment 2 Michael S. Tsirkin 2010-01-21 11:18:48 UTC
I assume what was meant was proposing it for 5.6.0, not 5.5.0.
Changed flags accordingly.

Comment 8 Herbert Xu 2010-07-02 09:49:16 UTC
Created attachment 428813 [details]
Add set_multicast_list to virtio_net

This patch allows virtio_net to support multicast.

Comment 9 Amos Kong 2010-07-05 06:56:08 UTC
(In reply to comment #8)
> Created an attachment (id=428813) [details]
> Add set_multicast_list to virtio_net
> 
> This patch allows virtio_net to support multicast.    


After use this patch, I can join guest into MAC multicase group.

guest) # ip maddr add 01:00:5E:C0:01:64 dev eth0
guest) # ip maddr show
1:      lo
        inet  224.0.0.1
        inet6 ff02::1
6:      eth0
        link  01:00:5e:c0:01:64 static
        link  33:33:00:00:00:fb
        link  01:00:5e:00:00:fb
        link  01:00:5e:00:00:01
        link  33:33:ff:6c:9e:f9
        link  33:33:00:00:00:01
        inet  224.0.0.251
        inet  224.0.0.1
        inet6 ff02::fb
        inet6 ff02::1:ff6c:9ef9
        inet6 ff02::1

Comment 11 Jarod Wilson 2010-07-12 15:44:05 UTC
in kernel-2.6.18-206.el5
You can download this test kernel from http://people.redhat.com/jwilson/el5

Detailed testing feedback is always welcomed.

Comment 13 Amos Kong 2010-07-13 02:24:28 UTC
Bug is fixed in kernel-2.6.18-206.el5
Move to VERIFIED

Comment 15 errata-xmlrpc 2011-01-13 20:58:17 UTC
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on therefore solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.

http://rhn.redhat.com/errata/RHSA-2011-0017.html

Comment 16 Michael S. Tsirkin 2011-01-17 12:53:04 UTC
*** Bug 670174 has been marked as a duplicate of this bug. ***

Comment 17 Bill Burns 2011-01-20 20:24:11 UTC
*** Bug 589032 has been marked as a duplicate of this bug. ***


Note You need to log in before you can comment on or make changes to this bug.