qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] Re: [PATCH][RFC] qemu:virtio-net: Use TUNSETTXFILTER for MA


From: Mark McLoughlin
Subject: [Qemu-devel] Re: [PATCH][RFC] qemu:virtio-net: Use TUNSETTXFILTER for MAC filtering
Date: Fri, 06 Feb 2009 07:47:19 +0000

On Thu, 2009-02-05 at 21:51 -0700, Alex Williamson wrote:
> Now that virtio-net knows what packets the guest wants to see, we
> can start moving the filtering down the stack.  This patch adds
> an interface to set the software filter in the tap device.  It's
> fairly limited, but we can back it up with our own filtering if it
> overflows.

Looks good to me.

Note also the new world order where we don't handle qemu_malloc()
failures.

> Here are a couple issues I'm still pondering:
>  - Is the fd_rx_filter() interface sufficiently generic
>  - Should vlan_set_hw_rx_filter() live in net.c or elsewhere
>  - Is it ok to call fd_rx_filter() against all the vlan clients.  I
>    exit on the first one, which covers the simple config.

All of these are related to the problem that we're trying to add
optimizations for the simple config (i.e. one NIC associated with one
tap interface) without any clean representation of the simple config in
the API.

It's not strictly needed in this case - the VLAN API for setting filters
could aggregate the filters of all VLAN clients - but what you really
want is to only have the filter apply if virtio-net is paired with a tap
interface.

Cheers,
Mark.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]