[OpenWrt-Devel] [PATCH] b53: Allow to enable/disable port protection for b53 switch

Alexandru Ardelean ardeleanalex at gmail.com
Fri Feb 20 07:24:37 EST 2015


So, I don't know on which chips this feature is supported.
Our chip of interest is the BCM53128.
Maybe I could first add a "is53128()" function, so that it's only specific
to this chip, especially since we want to push more features that we've
developed on this particular chip.
Then, if others find that it works on other chips, it could be

To answer the questions:
A port that is marked protected means that it cannot talk to another port
that is marked protected.
A protected port can send data to an unprotected port, and unprotected
ports can send data to any port.
This can be adapted into a sort of a security feature.

The Broadcom default is for the protected mode to be off in hardware, but
our board has this default overridden in hw, because it is required in
several of our use-cases.
So, unsetting those bits sets the default behaviour, which should not
affect normal behaviour.

Maybe I could re-spin this patch, and include a more informative comment ?
Or, if there's no desire for it, we could just drop it.

Either way, I will send further patches for the b53 driver, and include
more informative comments.


On Tue, Feb 17, 2015 at 3:15 PM, Jonas Gorski <jogo at openwrt.org> wrote:

> On Fri, Feb 13, 2015 at 8:10 PM, Alexandru Ardelean
> <ardeleanalex at gmail.com> wrote:
> > From: Helmut Schaa <helmut.schaa at googlemail.com>
> >
> > Signed-off-by: Helmut Schaa <helmut.schaa at googlemail.com>
> What does it protect from? Is it available on all supported chips?
> What are the use cases of this? Please explain what this bit does and
> why we want to (un)set it.
> Jonas
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.infradead.org/pipermail/openwrt-devel/attachments/20150220/d8402c27/attachment.htm>
-------------- next part --------------
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org

More information about the openwrt-devel mailing list