Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

[PATCH 0/2] tun: linux socket filter support

5 views
Skip to first unread message

Michael S. Tsirkin

unread,
Feb 14, 2010, 6:10:01 AM2/14/10
to
tun module already support RX filtering, however,
this is limited to filtering by mac address.
For virtio host, we also need filtering by vlan.

Rather than adding this directly, it seems cleaner
to add generic socket filter support.

Michael S. Tsirkin (2):
net: export attach/detach filter routines
tun: socket filter support

drivers/net/tun.c | 26 ++++++++++++++++++++++++++
include/linux/if_tun.h | 3 +++
net/core/filter.c | 2 ++
3 files changed, 31 insertions(+), 0 deletions(-)
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majo...@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

Arnd Bergmann

unread,
Feb 15, 2010, 10:50:02 AM2/15/10
to
On Sunday 14 February 2010, Michael S. Tsirkin wrote:
> tun module already support RX filtering, however,
> this is limited to filtering by mac address.
> For virtio host, we also need filtering by vlan.
>
> Rather than adding this directly, it seems cleaner
> to add generic socket filter support.

Great idea, I was wondering how to do vlan filtering
in macvtap with trunk mode. I guess it would be
straightforward to do the same patch in macvtap, right?

Arnd

David Miller

unread,
Feb 17, 2010, 7:40:02 PM2/17/10
to
From: "Michael S. Tsirkin" <m...@redhat.com>
Date: Sun, 14 Feb 2010 13:00:51 +0200

> tun module already support RX filtering, however,
> this is limited to filtering by mac address.
> For virtio host, we also need filtering by vlan.
>
> Rather than adding this directly, it seems cleaner
> to add generic socket filter support.

Both applied to net-next-2.6, thanks!

0 new messages