lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite for Android: free password hash cracker in your pocket
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CAE4R7bAKkcEQ51_=LuXc8FCtgQNxMrYuioYV0L_akNov37TmGA@mail.gmail.com>
Date:	Wed, 17 Jun 2015 00:02:39 -0700
From:	Scott Feldman <sfeldma@...il.com>
To:	Jiri Pirko <jiri@...nulli.us>
Cc:	David Miller <davem@...emloft.net>,
	Netdev <netdev@...r.kernel.org>,
	"simon.horman@...ronome.com" <simon.horman@...ronome.com>,
	Roopa Prabhu <roopa@...ulusnetworks.com>,
	"Arad, Ronen" <ronen.arad@...el.com>,
	"Fastabend, John R" <john.r.fastabend@...el.com>,
	"andrew@...n.ch" <andrew@...n.ch>,
	Florian Fainelli <f.fainelli@...il.com>,
	Guenter Roeck <linux@...ck-us.net>,
	davidch <davidch@...adcom.com>,
	"stephen@...workplumber.org" <stephen@...workplumber.org>
Subject: Re: [RFC PATCH net-next 0/4] switchdev: avoid duplicate packet forwarding

On Tue, Jun 16, 2015 at 11:30 PM, Jiri Pirko <jiri@...nulli.us> wrote:

> Scott, again, I'm not talking about br0 ifindex! I'm talking about
> ifindexes of the port netdevs.
>
> br0
>   sw1p1  ifindex=1
>   sw1p2  ifindex=2
>   sw2p1  ifindex=3
>   sw2p2  ifindex=4
>
>
> now we have 2 groups, one in each switch. So for sw1 group (sw1p1 and
> sw1p2) we select mark one of the ifindexes, so either "1" or "2"
> For second group, from sw2 we select "3" or "4". So for example:
> br0
>   sw1p1  mark=1
>   sw1p2  mark=1
>   sw2p1  mark=4
>   sw2p2  mark=4
>
> This is generic, usable for every group.

Oooh, that's good.  I like it.  If the port is not grouped, set
mark=ifindex.  Or mark=0 to have a dflt group for ungrouped ports.

Do you see a way to code this up?  The only thing that comes to mind
is for the swX driver to keep track of mark picked for each bridge
brY, but I was hoping you have an idea how to do this without any
storage?
--
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

Powered by Openwall GNU/*/Linux Powered by OpenVZ