diff options
| author | Jiri Pirko <jiri@mellanox.com> | 2019-04-03 15:24:17 +0300 | 
|---|---|---|
| committer | David S. Miller <davem@davemloft.net> | 2019-04-05 03:42:36 +0300 | 
| commit | 7e1146e8c10c00f859843817da8ecc5d902ea409 (patch) | |
| tree | 822a020b5a501b08faa86b25488bc07c46af7db7 /tools/perf/scripts/python/mem-phys-addr.py | |
| parent | bec5267cded268acdf679b651778c300d204e9f2 (diff) | |
| download | linux-7e1146e8c10c00f859843817da8ecc5d902ea409.tar.xz | |
net: devlink: introduce devlink_compat_switch_id_get() helper
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 <jiri@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'tools/perf/scripts/python/mem-phys-addr.py')
0 files changed, 0 insertions, 0 deletions
