]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitf5538355c7498b7b7c7788604e1a149605687057
tree2f19b1d521ced4937d835b0d91d908e15466e757
parent8eed0d997ade419f4653ef10771094cc9f3f8d9c
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