]> git.baikalelectronics.ru Git - kernel.git/commit
macvlan: Only update pkt_type if destination MAC address matches
authorAlexander Duyck <alexander.h.duyck@intel.com>
Fri, 13 Oct 2017 20:40:31 +0000 (13:40 -0700)
committerDavid S. Miller <davem@davemloft.net>
Sun, 15 Oct 2017 01:46:36 +0000 (18:46 -0700)
commit469700fdfb4578de7d3905fc7e2166209e178ae8
tree27d6dacd64d59e8339ac58feca9ba929e7ebaeb6
parentafff2a041ed1a6f407e1ec2c9d7d77a86d682fa9
macvlan: Only update pkt_type if destination MAC address matches

This patch updates the pkt_type to PACKET_HOST only if the destination MAC
address matches on the on the source based macvlan. It didn't make sense to
be updating broadcast, multicast, and non-local destined frames with
PACKET_HOST.

Signed-off-by: Alexander Duyck <alexander.h.duyck@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/macvlan.c