diff options
Diffstat (limited to 'drivers/net/macvlan.c')
-rw-r--r-- | drivers/net/macvlan.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/net/macvlan.c b/drivers/net/macvlan.c index a4ae8cd0f660..1e1df54c5d31 100644 --- a/drivers/net/macvlan.c +++ b/drivers/net/macvlan.c | |||
@@ -413,7 +413,9 @@ static void macvlan_forward_source_one(struct sk_buff *skb, | |||
413 | 413 | ||
414 | len = nskb->len + ETH_HLEN; | 414 | len = nskb->len + ETH_HLEN; |
415 | nskb->dev = dev; | 415 | nskb->dev = dev; |
416 | nskb->pkt_type = PACKET_HOST; | 416 | |
417 | if (ether_addr_equal_64bits(eth_hdr(skb)->h_dest, dev->dev_addr)) | ||
418 | nskb->pkt_type = PACKET_HOST; | ||
417 | 419 | ||
418 | ret = netif_rx(nskb); | 420 | ret = netif_rx(nskb); |
419 | macvlan_count_rx(vlan, len, ret == NET_RX_SUCCESS, false); | 421 | macvlan_count_rx(vlan, len, ret == NET_RX_SUCCESS, false); |