* [PATCH net] net: dsa: b53: Turn off Broadcom tags for more switches
@ 2018-01-04 6:02 Florian Fainelli
2018-01-04 14:58 ` David Miller
0 siblings, 1 reply; 2+ messages in thread
From: Florian Fainelli @ 2018-01-04 6:02 UTC (permalink / raw)
To: netdev
Cc: davem, jochen, Florian Fainelli, Andrew Lunn, Vivien Didelot,
open list
Models such as BCM5395/97/98 and BCM53125/24/53115 and compatible require that
we turn on managed mode to actually act on Broadcom tags, otherwise they just
pass them through on ingress (host -> switch) and don't insert them in egress
(switch -> host). Turning on managed mode is simple, but requires us to
properly support ARL misses on multicast addresses which is a much more
involved set of changes not suitable for a bug fix for this release.
Reported-by: Jochen Friedrich <jochen@scram.de>
Fixes: 7edc58d614d4 ("net: dsa: b53: Turn on Broadcom tags")
Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
---
drivers/net/dsa/b53/b53_common.c | 9 ++++++---
1 file changed, 6 insertions(+), 3 deletions(-)
diff --git a/drivers/net/dsa/b53/b53_common.c b/drivers/net/dsa/b53/b53_common.c
index f5a8dd96fd75..4498ab897d94 100644
--- a/drivers/net/dsa/b53/b53_common.c
+++ b/drivers/net/dsa/b53/b53_common.c
@@ -1500,10 +1500,13 @@ static enum dsa_tag_protocol b53_get_tag_protocol(struct dsa_switch *ds,
{
struct b53_device *dev = ds->priv;
- /* Older models support a different tag format that we do not
- * support in net/dsa/tag_brcm.c yet.
+ /* Older models (5325, 5365) support a different tag format that we do
+ * not support in net/dsa/tag_brcm.c yet. 539x and 531x5 require managed
+ * mode to be turned on which means we need to specifically manage ARL
+ * misses on multicast addresses (TBD).
*/
- if (is5325(dev) || is5365(dev) || !b53_can_enable_brcm_tags(ds, port))
+ if (is5325(dev) || is5365(dev) || is539x(dev) || is531x5(dev) ||
+ !b53_can_enable_brcm_tags(ds, port))
return DSA_TAG_PROTO_NONE;
/* Broadcom BCM58xx chips have a flow accelerator on Port 8
--
2.14.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH net] net: dsa: b53: Turn off Broadcom tags for more switches
2018-01-04 6:02 [PATCH net] net: dsa: b53: Turn off Broadcom tags for more switches Florian Fainelli
@ 2018-01-04 14:58 ` David Miller
0 siblings, 0 replies; 2+ messages in thread
From: David Miller @ 2018-01-04 14:58 UTC (permalink / raw)
To: f.fainelli; +Cc: netdev, jochen, andrew, vivien.didelot, linux-kernel
From: Florian Fainelli <f.fainelli@gmail.com>
Date: Wed, 3 Jan 2018 22:02:29 -0800
> Models such as BCM5395/97/98 and BCM53125/24/53115 and compatible require that
> we turn on managed mode to actually act on Broadcom tags, otherwise they just
> pass them through on ingress (host -> switch) and don't insert them in egress
> (switch -> host). Turning on managed mode is simple, but requires us to
> properly support ARL misses on multicast addresses which is a much more
> involved set of changes not suitable for a bug fix for this release.
>
> Reported-by: Jochen Friedrich <jochen@scram.de>
> Fixes: 7edc58d614d4 ("net: dsa: b53: Turn on Broadcom tags")
> Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
Applied.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2018-01-04 14:58 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-01-04 6:02 [PATCH net] net: dsa: b53: Turn off Broadcom tags for more switches Florian Fainelli
2018-01-04 14:58 ` David Miller
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).