From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LNvyp-000312-C1 for qemu-devel@nongnu.org; Fri, 16 Jan 2009 16:11:51 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LNvyn-0002yi-GH for qemu-devel@nongnu.org; Fri, 16 Jan 2009 16:11:50 -0500 Received: from [199.232.76.173] (port=40430 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LNvyn-0002yU-BS for qemu-devel@nongnu.org; Fri, 16 Jan 2009 16:11:49 -0500 Received: from g4t0016.houston.hp.com ([15.201.24.19]:6459) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1LNvym-0005q6-TY for qemu-devel@nongnu.org; Fri, 16 Jan 2009 16:11:49 -0500 From: Alex Williamson Date: Fri, 16 Jan 2009 14:09:54 -0700 Message-ID: <20090116210954.16725.44321.stgit@kvm.aw> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Subject: [Qemu-devel] [PATCH 0/7] qemu:virtio-net: Add MAC and VLAN filtering Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: kvm@vger.kernel.org Cc: markmc@redhat.com, qemu-devel@nongnu.org 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