From: Linus Walleij
Date: Sun, 20 Sep 2020 00:01:05 +0200
> The MTU setting for this DSA switch is global so we need
> to keep track of the MTU set for each port, then as soon
> as any MTU changes, roof the MTU to the biggest common
> denominator and poke that into the switch MTU setting.
>
> To
> static int rtl8366rb_setup(struct dsa_switch *ds)
> {
> struct realtek_smi *smi = ds->priv;
> + struct rtl8366rb *rb = smi->chip_data;
> const u16 *jam_table;
> u32 chip_ver = 0;
> u32 chip_id = 0;
Hi Linus
Reverse Christmas tree means you need to do the assignment
The MTU setting for this DSA switch is global so we need
to keep track of the MTU set for each port, then as soon
as any MTU changes, roof the MTU to the biggest common
denominator and poke that into the switch MTU setting.
To achieve this we need a per-chip-variant state container
for the RTL8366