On Fri,  1 Mar 2019 17:05:37 +0100, Jiri Pirko wrote:
> From: Jiri Pirko <j...@mellanox.com>
> 
> Introduce devlink_compat_switch_id_get() helper which fills up switch_id
> according to passed netdev pointer. Call it directly from
> dev_get_port_parent_id() as a fallback when ndo_get_port_parent_id
> is not defined for given netdev.
> 
> Signed-off-by: Jiri Pirko <j...@mellanox.com>

Here my locking concerns are even stronger :S  Do you want to introduce
some extra ordering rules regarding lifetime of devlink ports and their
netdevs?

Reply via email to