From: Phil Sutter Date: Fri, 2 Aug 2013 09:37:40 +0000 (+0200) Subject: af_packet: fix for sending VLAN frames via packet_mmap X-Git-Tag: v3.12-rc1~132^2~375 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cbd89acb9eb2;p=pandora-kernel.git af_packet: fix for sending VLAN frames via packet_mmap Since tpacket_fill_skb() parses the protocol field in ethernet frames' headers, it's easy to see if any passed frame is a VLAN one and account for the extended size. But as the real protocol does not turn up before tpacket_fill_skb() runs which in turn also checks the frame length, move the max frame length calculation into the function. Signed-off-by: Phil Sutter Signed-off-by: David S. Miller --- Reading git-diff-tree failed