e1000 VLAN offload emulation (Alex Williamson)
commit8f2e8d1f800d242feb99da920675186fa66f8942
authoraliguori <aliguori@c046a42c-6fe2-441c-8c8c-71466251a162>
Fri, 21 Nov 2008 16:25:17 +0000 (21 16:25 +0000)
committeraliguori <aliguori@c046a42c-6fe2-441c-8c8c-71466251a162>
Fri, 21 Nov 2008 16:25:17 +0000 (21 16:25 +0000)
tree859895ad4685f5b68dc1096a194f6af1a442b003
parent7e5f90fa3ff32ea31548666d57a78005555ecf34
e1000 VLAN offload emulation (Alex Williamson)

We're currently ignoring the e1000 VLAN tagging, stripping and filtering
features in the e1000 emulation.  This patch adds backing for the
relevant registers and provides a software implementation of the
acceleration, such that a guest can make use of VLANs.

This is mostly (only?) useful for a guest on a bridge (not user mode
networking).  The only caveat beyond that is that you need to make sure
the host NIC isn't doing it's own tagging, stripping, or filtering.
This generally means the host NIC on the bridge should not be part of a
VLAN.

Signed-off-by: Alex Williamson <alex.williamson@hp.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5766 c046a42c-6fe2-441c-8c8c-71466251a162
hw/e1000.c