Re: [PATCH net-next RFC 10/12] net: dsa: Move FDB dump implementation inside DSA

2017-07-11 Thread Arkadi Sharshevsky
On 07/10/2017 10:36 PM, Vivien Didelot wrote: > Hi Arkadi, > > Arkadi Sharshevsky writes: > >> +struct dsa_slave_dump_ctx { >> +struct net_device *dev; >> +struct sk_buff *skb; >> +struct netlink_callback *cb; >> +int idx; >> +}; >> + >> struct dsa_switch_ops { >> /* >>

Re: [PATCH net-next RFC 10/12] net: dsa: Move FDB dump implementation inside DSA

2017-07-10 Thread Vivien Didelot
Hi Arkadi, Arkadi Sharshevsky writes: > +struct dsa_slave_dump_ctx { > + struct net_device *dev; > + struct sk_buff *skb; > + struct netlink_callback *cb; > + int idx; > +}; > + > struct dsa_switch_ops { > /* >* Legacy probing. > @@ -392,9 +399,7 @@ struct dsa_swit

[PATCH net-next RFC 10/12] net: dsa: Move FDB dump implementation inside DSA

2017-07-05 Thread Arkadi Sharshevsky
>From all switchdev devices only DSA requires special FDB dump. This is due to lack of ability for syncing the hardware learned FDBs with the bridge. Due to this it is removed from switchdev and moved inside DSA. Signed-off-by: Arkadi Sharshevsky --- drivers/net/dsa/b53/b53_common.c | 19 +