macvtap: fix network header pointer for VLAN tagged pkts
authorIvan Vecera <ivecera@redhat.com>
Thu, 23 Jul 2015 14:37:43 +0000 (16:37 +0200)
committerDavid S. Miller <davem@davemloft.net>
Mon, 27 Jul 2015 21:49:54 +0000 (14:49 -0700)
commitc5c62f1bb0e1fc94ab77ec01e92ccab5cb249742
tree9af57b09b0e0e113743161f4029a21f8624f655f
parent1513069edcf8dd86cfd8d5daef482b97d6b93df6
macvtap: fix network header pointer for VLAN tagged pkts

Network header is set with offset ETH_HLEN but it is not true for VLAN
(multiple-)tagged and results in checksum issues in lower devices.

v2: leave skb->protocol untouched (thx Vlad), comment added
v3: moved after skb_probe_transport_header() call (thx Toshiaki)

Signed-off-by: Ivan Vecera <ivecera@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/macvtap.c