]> git.baikalelectronics.ru Git - kernel.git/commit
dsa: pass switch ID through devlink_port_attrs_set()
authorJiri Pirko <jiri@mellanox.com>
Wed, 3 Apr 2019 12:24:26 +0000 (14:24 +0200)
committerDavid S. Miller <davem@davemloft.net>
Fri, 5 Apr 2019 00:42:36 +0000 (17:42 -0700)
commitd92c2c38c44f97717b28e4b6a674278b1f4dd168
treecf87b7b657cdd87f7c6ba1986aa3751560024366
parentb0e319611ea9a930d06ce76d8ab82926f5622874
dsa: pass switch ID through devlink_port_attrs_set()

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 <jiri@mellanox.com>
Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/dsa/dsa2.c
net/dsa/slave.c