af_packet: simplify VLAN frame check in packet_snd
authorPhil Sutter <phil@nwl.cc>
Fri, 2 Aug 2013 09:37:41 +0000 (11:37 +0200)
committerDavid S. Miller <davem@davemloft.net>
Fri, 2 Aug 2013 21:58:32 +0000 (14:58 -0700)
commitc483e02614551e44ced3fe6eedda8e36d3277ccc
tree7d171a5c01d8212921cd2557aa0749fa81263893
parentcbd89acb9eb257ed3b2be867142583fdcf7fdc5b
af_packet: simplify VLAN frame check in packet_snd

For ethernet frames, eth_type_trans() already parses the header, so one
can skip this when checking the frame size.

Signed-off-by: Phil Sutter <phil@nwl.cc>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/packet/af_packet.c