[PATCH 0/7] qemu:virtio-net: Add MAC and VLAN filtering

Alex Williamson
2009-01-16T21:11:47Z

This series adds the ability for the guest to set the virtio-net device
MAC address, a new control virtqueue for setting configuration data from
the guest, and new interfaces making use of the control virtqueue for
setting RX mode options, MAC filter table entries, and VLAN filter bits.
The end result is that the virtio-net device has more of the features of
a realy hardware NIC and can be configured to drop packets the guest
isn't interested in seeing.

This version incorporates the review comments from Mark McLoughlin,
particularly including much better commit logs, factoring control
commands into separate functions, and making a local ETH_ALEN define.
Also new in this version is the addition of VLAN filtering. Please
comment and/or apply. Thanks,

Alex

Note - This series depends on the previous patch sent to correct
save and load of the virtio-net state.
---

Alex Williamson (7):
qemu:virtio-net: Add VLAN filtering
qemu:virtio-net: Add additional MACs via a filter table
qemu:virtio-net: Enable filtering based on MAC, promisc, broadcast and allmulti
qemu:virtio-net: Add promiscuous and all-multicast mode bits
qemu:virtio-net: Add a virtqueue for control commands from the guest
qemu:virtio-net: Define ETH_ALEN for use when manipulating MAC addresses
qemu:virtio-net: Allow setting the MAC address via set_config

qemu/hw/virtio-net.c | 280 +++++++++++++++++++++++++++++++++++++++++++++++++-
qemu/hw/virtio-net.h | 61 +++++++++++
2 files changed, 333 insertions(+), 8 deletions(-)

--
Alex Williamson