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)
commitc8c41ea1bd707eb032e248c55d640f32c950ed19
tree27d6dacd64d59e8339ac58feca9ba929e7ebaeb6
parentdd6b9c2c332b40f142740d1b11fb77c653ff98ea
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