]> git.karo-electronics.de Git - karo-tx-linux.git/commit
virtio_net: Fix MAX_PACKET_LEN to support 802.1Q VLANs
authorAlex Williamson <alex.williamson@hp.com>
Fri, 13 Feb 2009 08:06:29 +0000 (00:06 -0800)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 17 Feb 2009 17:46:24 +0000 (09:46 -0800)
commit80156b7e084cf364ce325d898f0b29de7ab24abc
tree0329521e4b834bf147f928d2073c087b7c265350
parent03b0d4d0c3d219d3b163e4e9b160da9c36057579
virtio_net: Fix MAX_PACKET_LEN to support 802.1Q VLANs

[ Upstream commit e918085aaff34086e265f825dd469926b1aec4a4 ]

802.1Q expanded the maximum ethernet frame size by 4 bytes for the
VLAN tag.  We're not taking this into account in virtio_net, which
means the buffers we provide to the backend in the virtqueue RX ring
aren't big enough to hold a full MTU VLAN packet.  For QEMU/KVM,
this results in the backend exiting with a packet truncation error.

Signed-off-by: Alex Williamson <alex.williamson@hp.com>
Acked-by: Mark McLoughlin <markmc@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/net/virtio_net.c