net: dsa: Implement ndo_get_phys_port_name()
authorFlorian Fainelli <f.fainelli@gmail.com>
Tue, 10 Jan 2017 20:32:36 +0000 (12:32 -0800)
committerDavid S. Miller <davem@davemloft.net>
Wed, 11 Jan 2017 14:55:54 +0000 (09:55 -0500)
commit44bb765cf07ab6622e6fdf4bce546b43bd20faee
tree0a940b5a8427264ecdc16dd1c63a9f4e6612725a
parent9f91484f6fcc28f9b5ebe11755e7488e39ea75e4
net: dsa: Implement ndo_get_phys_port_name()

Return the physical port number of a DSA created network device using
ndo_get_phys_port_name().

Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
Tested-by: Vivien Didelot <vivien.didelot@savoirfairelinux.com>
Reviewed-by: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/dsa/slave.c