[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <a8af43e2-09e9-46ac-86f0-baa48d810fa4@ti.com>
Date: Tue, 28 May 2024 10:58:35 +0530
From: MD Danish Anwar <danishanwar@...com>
To: Andrew Lunn <andrew@...n.ch>
CC: Dan Carpenter <dan.carpenter@...aro.org>,
Jan Kiszka
<jan.kiszka@...mens.com>, Simon Horman <horms@...nel.org>,
Vladimir Oltean
<vladimir.oltean@....com>,
Wolfram Sang <wsa+renesas@...g-engineering.com>,
Niklas Schnelle <schnelle@...ux.ibm.com>,
Arnd Bergmann <arnd@...db.de>, Diogo Ivo <diogo.ivo@...mens.com>,
Roger Quadros <rogerq@...nel.org>, Paolo
Abeni <pabeni@...hat.com>,
Jakub Kicinski <kuba@...nel.org>, Eric Dumazet
<edumazet@...gle.com>,
"David S. Miller" <davem@...emloft.net>,
<linux-arm-kernel@...ts.infradead.org>, <netdev@...r.kernel.org>,
<linux-kernel@...r.kernel.org>, <srk@...com>,
Vignesh Raghavendra
<vigneshr@...com>
Subject: Re: [PATCH net-next v5 3/3] net: ti: icssg-prueth: Add support for
ICSSG switch firmware
On 28/05/24 3:44 am, Andrew Lunn wrote:
> On Mon, May 27, 2024 at 10:57:38AM +0530, MD Danish Anwar wrote:
>> Add support for ICSSG switch firmware using existing Dual EMAC driver
>> with switchdev.
>>
>> Limitations:
>> VLAN offloading is limited to 0-256 IDs.
>> MDB/FDB static entries are limited to 511 entries and different FDBs can
>> hash to same bucket and thus may not completely offloaded
>>
>> Example assuming ETH1 and ETH2 as ICSSG2 interfaces:
>>
>> Switch to ICSSG Switch mode:
>> ip link add name br0 type bridge
>> ip link set dev eth1 master br0
>> ip link set dev eth2 master br0
>> ip link set dev br0 up
>> bridge vlan add dev br0 vid 1 pvid untagged self
>>
>> Going back to Dual EMAC mode:
>>
>> ip link set dev br0 down
>> ip link set dev eth1 nomaster
>> ip link set dev eth2 nomaster
>> ip link del name br0 type bridge
>>
>> By default, Dual EMAC firmware is loaded, and can be changed to switch
>> mode by above steps
>>
>> Signed-off-by: MD Danish Anwar <danishanwar@...com>
>> static int prueth_emac_buffer_setup(struct prueth_emac *emac)
>> {
>> struct icssg_buffer_pool_cfg __iomem *bpool_cfg;
>> @@ -321,25 +401,63 @@ static void icssg_init_emac_mode(struct prueth *prueth)
>> /* When the device is configured as a bridge and it is being brought
>> * back to the emac mode, the host mac address has to be set as 0.
>> */
>> + u32 addr = prueth->shram.pa + EMAC_ICSSG_SWITCH_DEFAULT_VLAN_TABLE_OFFSET;
>> + int i;
>> u8 mac[ETH_ALEN] = { 0 };
>
> nitpick: Reverse Christmas tree
>
> Reviewed-by: Andrew Lunn <andrew@...n.ch>
Thanks for the review. I will change this to "Reverse Christmas tree"
and send next revision.
>
> Andrew
--
Thanks and Regards,
Danish
Powered by blists - more mailing lists