> -----Original Message----- > From: Yuan, Linyu (NSB - CN/Shanghai) [mailto:linyu.y...@nokia-sbell.com] > Sent: Monday, January 29, 2018 5:53 PM > To: Keller, Jacob E <jacob.e.kel...@intel.com>; netdev@vger.kernel.org > Cc: Duyck, Alexander H <alexander.h.du...@intel.com> > Subject: RE: macvlan devices and vlan interaction > > https://www.spinics.net/lists/netdev/msg476083.html > > I also have a macvlan device question, but get no answer. > > But my original thought is in __netif_receive_skb_core() we should check > packet > destination mac address, > if it match macvlan device, change packet as receive from macvlan device, not > lower device, then packet go to upper layer. > > But I don't know how to process broadcast mac address. Do macvlan device can > receive broadcast packet ? >
I don't know how macvlans behave in regards to broadcast addresses. I do think that we should make sure macvlan filtering occurs earlier than VLAN filtering to ensure that we get the correct behavior (see the other emails on this thread). I can't comment on how that impacts AF_PACKET, because I think AF_PACKET sockets bypass a lot of the stack don't they? Thanks, Jake