macvtap: restore vlan header on user read
authorBasil Gor <[email protected]>
Thu, 3 May 2012 22:55:24 +0000 (22:55 +0000)
committerDavid S. Miller <[email protected]>
Fri, 11 May 2012 22:16:57 +0000 (18:16 -0400)
commitf09e2249c4f5c7c13261ec73f5a7807076af0c8e
treeb5de8c35f970b9769a64f76bec869232587c7e45
parentc53cff5e42a06b81495983bd01741b9a954f11f0
macvtap: restore vlan header on user read

Ethernet vlan header is not on the packet and kept in the skb->vlan_tci
when it comes from lower dev. This patch inserts vlan header in user
buffer during skb copy on user read.

Signed-off-by: Basil Gor <[email protected]>
Acked-by: Michael S. Tsirkin <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
drivers/net/macvtap.c