Re: [patch net-next 11/12] dsa: pass switch ID through devlink_port_attrs_set()

2019-04-01 Thread Jiri Pirko
Fri, Mar 29, 2019 at 10:59:54PM CET, f.faine...@gmail.com wrote: >On 3/28/19 2:12 PM, Jiri Pirko wrote: >> From: Jiri Pirko >> >> Pass the switch ID down the to devlink through devlink_port_attrs_set() >> so it can be used by devlink_compat_switch_id_get(). Leave >> ndo_get_port_parent_id impleme

Re: [patch net-next 11/12] dsa: pass switch ID through devlink_port_attrs_set()

2019-03-29 Thread Florian Fainelli
On 3/28/19 2:12 PM, Jiri Pirko wrote: > From: Jiri Pirko > > Pass the switch ID down the to devlink through devlink_port_attrs_set() > so it can be used by devlink_compat_switch_id_get(). Leave > ndo_get_port_parent_id implementation only for legacy. Nit you are passing the switch fabric id (dst

[patch net-next 11/12] dsa: pass switch ID through devlink_port_attrs_set()

2019-03-28 Thread Jiri Pirko
From: Jiri Pirko Pass the switch ID down the to devlink through devlink_port_attrs_set() so it can be used by devlink_compat_switch_id_get(). Leave ndo_get_port_parent_id implementation only for legacy. Signed-off-by: Jiri Pirko --- net/dsa/dsa2.c | 4 +++- net/dsa/slave.c | 1 - 2 files chan