]> git.baikalelectronics.ru Git - kernel.git/commit
net: dsa: Implement ndo_get_port_parent_id()
authorFlorian Fainelli <f.fainelli@gmail.com>
Wed, 6 Feb 2019 17:45:45 +0000 (09:45 -0800)
committerDavid S. Miller <davem@davemloft.net>
Wed, 6 Feb 2019 22:17:03 +0000 (14:17 -0800)
commitac2ebd7ee92b7e3192d3dd95173804e8af8529a0
tree9063d8a97848fec3a487fdd050df3d1c39b9fcb9
parentde0908bb3d1b6c9c1dc4f652c6fbe84df664e522
net: dsa: Implement ndo_get_port_parent_id()

DSA implements SWITCHDEV_ATTR_ID_PORT_PARENT_ID and we want to get rid
of switchdev_ops eventually, ease that migration by implementing a
ndo_get_port_parent_id() function which returns what
switchdev_port_attr_get() would do.

Acked-by: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/dsa/slave.c