macvtap: restore vlan header on user read
authorBasil Gor <basil.gor@gmail.com>
Thu, 3 May 2012 22:55:24 +0000 (22:55 +0000)
committerDavid S. Miller <davem@davemloft.net>
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 <basil.gor@gmail.com>
Acked-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/macvtap.c