]> git.baikalelectronics.ru Git - kernel.git/commit
macvlan: Only deliver one copy of the frame to the macvlan interface
authorAlexander Duyck <alexander.h.duyck@intel.com>
Fri, 13 Oct 2017 20:40:24 +0000 (13:40 -0700)
committerDavid S. Miller <davem@davemloft.net>
Sun, 15 Oct 2017 01:46:36 +0000 (18:46 -0700)
commitafff2a041ed1a6f407e1ec2c9d7d77a86d682fa9
tree015ec7d8642ea8fa811f42c469dc193ca70dd510
parent75c0c9eca126129004770091854efff219bb559c
macvlan: Only deliver one copy of the frame to the macvlan interface

This patch intoduces a slight adjustment for macvlan to address the fact
that in source mode I was seeing two copies of any packet addressed to the
macvlan interface being delivered where there should have been only one.

The issue appears to be that one copy was delivered based on the source MAC
address and then the second copy was being delivered based on the
destination MAC address. To fix it I am just treating a unicast address
match as though it is not a match since source based macvlan isn't supposed
to be matching based on the destination MAC anyway.

Fixes: 2b2bf7496d18 ("macvlan: add source mode")
Signed-off-by: Alexander Duyck <alexander.h.duyck@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/macvlan.c