]> 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)
commit9866d2768c8ed1f26b7de3e1becafc2c73c54576
tree27d6dacd64d59e8339ac58feca9ba929e7ebaeb6
parent953cf511acdc72c81f99f89637ed1067095bcd11
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