* [PATCH 0/2] tun: linux socket filter support
@ 2010-02-14 11:00 Michael S. Tsirkin
0 siblings, 0 replies; 4+ messages in thread
From: Michael S. Tsirkin @ 2010-02-14 11:00 UTC (permalink / raw)
To: David S. Miller, Herbert Xu, Michael S. Tsirkin, Paul Moore,
David Woodhouse
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(-)
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH 0/2] tun: linux socket filter support
2010-02-14 11:00 Michael S. Tsirkin
2010-02-15 15:47 ` Arnd Bergmann
@ 2010-02-18 0:35 ` David Miller
1 sibling, 0 replies; 4+ messages in thread
From: David Miller @ 2010-02-18 0:35 UTC (permalink / raw)
To: mst; +Cc: herbert, paul.moore, David.Woodhouse, sri, netdev, linux-kernel
From: "Michael S. Tsirkin" <mst@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!
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH 0/2] tun: linux socket filter support
2010-02-14 11:00 Michael S. Tsirkin
@ 2010-02-15 15:47 ` Arnd Bergmann
2010-02-18 0:35 ` David Miller
1 sibling, 0 replies; 4+ messages in thread
From: Arnd Bergmann @ 2010-02-15 15:47 UTC (permalink / raw)
To: Michael S. Tsirkin
Cc: David S. Miller, Herbert Xu, Paul Moore, David Woodhouse,
Sridhar Samudrala, netdev, linux-kernel
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
^ permalink raw reply [flat|nested] 4+ messages in thread
* [PATCH 0/2] tun: linux socket filter support
@ 2010-02-14 11:00 Michael S. Tsirkin
2010-02-15 15:47 ` Arnd Bergmann
2010-02-18 0:35 ` David Miller
0 siblings, 2 replies; 4+ messages in thread
From: Michael S. Tsirkin @ 2010-02-14 11:00 UTC (permalink / raw)
To: David S. Miller, Herbert Xu, Michael S. Tsirkin, Paul Moore,
David Woodhouse, Sridhar Samudrala, netdev, linux-kernel
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(-)
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2010-02-18 0:35 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-02-14 11:00 [PATCH 0/2] tun: linux socket filter support Michael S. Tsirkin
-- strict thread matches above, loose matches on Subject: below --
2010-02-14 11:00 Michael S. Tsirkin
2010-02-15 15:47 ` Arnd Bergmann
2010-02-18 0:35 ` David Miller
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.