network: Allow af_packet to transmit +4 bytes for VLAN packets.
authorBen Greear <greearb@candelatech.com>
Fri, 11 Feb 2011 09:35:18 +0000 (09:35 +0000)
committerDavid S. Miller <davem@davemloft.net>
Sat, 12 Feb 2011 05:26:32 +0000 (21:26 -0800)
commit57f89bfa21403d902ee176ef988136b75d9ab30b
tree3ebee83312498997fdd4630acfe0cfccec84835c
parentab889e6607f6e3d52a76c5a43c8c4ad1d354da36
network: Allow af_packet to transmit +4 bytes for VLAN packets.

This allows user-space to send a '1500' MTU VLAN packet on a
1500 MTU ethernet frame.  The extra 4 bytes of a VLAN header is
not usually charged against the MTU when other parts of the
network stack is transmitting vlans...

Signed-off-by: Ben Greear <greearb@candelatech.com>
Reviewed-by: Eric Dumazet <eric.dumazet@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/packet/af_packet.c