[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <b5a88452-f10d-4893-87a5-5bb001d4be3a@broadcom.com>
Date: Mon, 2 Jun 2025 11:22:02 -0700
From: Florian Fainelli <florian.fainelli@...adcom.com>
To: Álvaro Fernández Rojas <noltari@...il.com>,
jonas.gorski@...il.com, andrew@...n.ch, olteanv@...il.com,
davem@...emloft.net, edumazet@...gle.com, kuba@...nel.org,
pabeni@...hat.com, vivien.didelot@...il.com, netdev@...r.kernel.org,
linux-kernel@...r.kernel.org, dgcbueu@...il.com
Cc: Florian Fainelli <f.fainelli@...il.com>
Subject: Re: [RFC PATCH 01/10] net: dsa: b53: add support for FDB operations
on 5325/5365
On 5/31/25 03:12, Álvaro Fernández Rojas wrote:
> From: Florian Fainelli <f.fainelli@...il.com>
>
> BCM5325 and BCM5365 are part of a much older generation of switches which,
> due to their limited number of ports and VLAN entries (up to 256) allowed
> a single 64-bit register to hold a full ARL entry.
> This requires a little bit of massaging when reading, writing and
> converting ARL entries in both directions.
>
> Signed-off-by: Florian Fainelli <f.fainelli@...il.com>
> Signed-off-by: Álvaro Fernández Rojas <noltari@...il.com>
Regarding your error in the cover letter which are mostly -ENOSPC, I
believe the problem is that b53_arl_read() is still looking for
ARLTBL_VALID rather than ARLTBL_VALID_25.
Given there is no VID returned upon an ARL ready with the 5325, I don't
know how to also reconcile that line:
if (dev->vlan_enabled &&
((mac_vid >> ARLTBL_VID_S) & ARLTBL_VID_MASK) != vid)
continue;
--
Florian
Powered by blists - more mailing lists