# Re: \[PATCH v2 net-next 2/6\] net: dsa: propagate flags down towards drivers

- From: Hans Schultz \<hidden\>
- Date: 2023-03-28 11:07:21 
- List: netdev
- Page: https://ratatoskr.run/netdev/2023/03/2150752
- Thread: https://ratatoskr.run/netdev/2023/03/2138876/t.md

```text
On Tue, Mar 28, 2023 at 01:59, Vladimir Oltean [ref] wrote:
>
> which idea is that, again?

So I cannot us the offloaded flag as it is added by DSA in the common
case when using 'bridge fdb replace ... dynamic'.

The idea is then to use the ext_learn flag instead, which is not aged by
the bridge. To do this the driver (mv88e6xxx) will send a
SWITCHDEV_FDB_ADD_TO_BRIDGE switchdev event when the new dynamic flag is
true. The function sending this event will then be named
mv88e6xxx_add_fdb_synth_learned() in
drivers/net/dsa/mv88e6xxx/switchdev.c, replacing the
mv88e6xxx_set_fdb_offloaded() function but in most part the same
content, just another event type.
```
