[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <1322429505.7338.56.camel@mojatatu>
Date: Sun, 27 Nov 2011 16:31:45 -0500
From: jamal <hadi@...erus.ca>
To: Lennert Buytenhek <buytenh@...tstofly.org>
Cc: John Fastabend <john.r.fastabend@...el.com>,
Eric Dumazet <eric.dumazet@...il.com>,
Herbert Xu <herbert@...dor.apana.org.au>,
David Miller <davem@...emloft.net>,
"jesse@...ira.com" <jesse@...ira.com>,
"netdev@...r.kernel.org" <netdev@...r.kernel.org>,
"dev@...nvswitch.org" <dev@...nvswitch.org>
Subject: Re: [GIT PULL v2] Open vSwitch
On Sun, 2011-11-27 at 20:34 +0100, Lennert Buytenhek wrote:
> On Thu, Nov 24, 2011 at 08:19:39AM -0500, Jamal Hadi Salim wrote:
> There's a bunch of features that the hardware supports that have no
> analog in the Linux networking stack (e.g. port mirroring a non-CPU
> port to another non-CPU port),
You can mirror on Linux; eg to intercept packets on dev XXX
and mirror on eth0:
tc filter add dev XXX parent ffff: prio Y .. match blah \
action mirred egress mirror dev eth0
a more fun one to mirror to two ports:
tc filter add dev XXX parent ffff: prio Y .. match blah \
action mirred egress mirror dev eth0 \
action mirred egress mirror dev eth1
or even more fun, to mirror to two then do a total redirect:
tc filter add dev XXX parent ffff: prio Y .. match blah \
action mirred egress mirror dev eth0 \
action mirred egress mirror dev eth1 \
action mirred egress redirect dev eth2
Of course you can thrown in other actions in between those
to edit packets etc before redirecting.
cheers,
jamal
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists