netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/2] tun: linux socket filter support
@ 2010-02-14 11:00 Michael S. Tsirkin
  0 siblings, 0 replies; 3+ 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 <David.Woodh

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] 3+ messages in thread

* Re: [PATCH 0/2] tun: linux socket filter support
       [not found] <20100214110051.GA30182@redhat.com>
@ 2010-02-15 15:47 ` Arnd Bergmann
  2010-02-18  0:35 ` David Miller
  1 sibling, 0 replies; 3+ 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] 3+ messages in thread

* Re: [PATCH 0/2] tun: linux socket filter support
       [not found] <20100214110051.GA30182@redhat.com>
  2010-02-15 15:47 ` [PATCH 0/2] tun: linux socket filter support Arnd Bergmann
@ 2010-02-18  0:35 ` David Miller
  1 sibling, 0 replies; 3+ 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] 3+ messages in thread

end of thread, other threads:[~2010-02-18  0:35 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <20100214110051.GA30182@redhat.com>
2010-02-15 15:47 ` [PATCH 0/2] tun: linux socket filter support Arnd Bergmann
2010-02-18  0:35 ` David Miller
2010-02-14 11:00 Michael S. Tsirkin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).