net: dsa: Implement ndo_get_phys_port_id
authorFlorian Fainelli <f.fainelli@gmail.com>
Thu, 29 Dec 2016 22:20:56 +0000 (14:20 -0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 30 Dec 2016 03:16:53 +0000 (22:16 -0500)
commit3a543ef479868e36c95935de320608a7e41466ca
tree2f19b1d521ced4937d835b0d91d908e15466e757
parent3d48b53fb2ae37158e700ffef3f45461ff15c965
net: dsa: Implement ndo_get_phys_port_id

Implement ndo_get_phys_port_id() by returning the physical port number
of the switch this per-port DSA created network interface corresponds
to.

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