On Wed, Dec 04, 2013 at 10:24:28AM +0800, jerry wrote: > On 2013/12/3 13:08, Ben Pfaff wrote: > > On Tue, Dec 03, 2013 at 10:18:43AM +0800, jerry wrote: > >> It may be easily supported to forward unicast packets. But I'm not sure > >> how to set OpenFlow rules when transferring multicast packets. > >> It's described as follows: > >> Firstly, multicast packets from VM1 will be sent out by up-link netdevice > >> and > >> be loop backed to up-link netdevice by physical switch. > >> Secondly, we should avoid multicast packets being sent to VM1. Here we need > >> to gather every VM MAC addresses and add rules for each VM. > >> > >> Could you share with me some opinions on such problems? > > > > Can you point me to a description of how this is done in a conventional > > VEPA bridge implementation? > > > Hi Ben > > Now MACVLan in Linux kernel has implemented VEPA. You can read related codes > or > the patch as follows: > https://lists.linux-foundation.org/pipermail/virtualization/2009-November/014409.html
It's rather hard to follow in detail without existing knowledge of the macvlan code, which I don't have. I'm still willing to help. Your statement was: "Secondly, we should avoid multicast packets being sent to VM1. Here we need to gather every VM MAC addresses and add rules for each VM." Can you describe that in more detail? Perhaps with examples? Thanks, Ben. _______________________________________________ dev mailing list dev@openvswitch.org http://openvswitch.org/mailman/listinfo/dev