]> git.baikalelectronics.ru Git - kernel.git/commit
virtio_net: Fix MAX_PACKET_LEN to support 802.1Q VLANs
authorAlex Williamson <alex.williamson@hp.com>
Mon, 26 Jan 2009 02:06:26 +0000 (18:06 -0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 26 Jan 2009 02:06:26 +0000 (18:06 -0800)
commitda90430fa12e653fd38065e8e6ff808b3d579e16
treecdd8c27d63026efb387ce585dd738b299f9f3479
parent3116d386a591a962b107a554f431d4ce11fac96c
virtio_net: Fix MAX_PACKET_LEN to support 802.1Q VLANs

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>
drivers/net/virtio_net.c