]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit - include/net/dsa.h
net: dsa: Add ndo_get_phys_port_name() for CPU port
authorFlorian Fainelli <f.fainelli@gmail.com>
Tue, 15 Jan 2019 22:43:04 +0000 (14:43 -0800)
committerDavid S. Miller <davem@davemloft.net>
Thu, 17 Jan 2019 05:12:21 +0000 (21:12 -0800)
commitda7b9e9b00d4859d0fa563d7fe9a2b2dff59e852
tree780c33a93ca4a8a13ca6dc3e5012e345fe5e5fe2
parent44543f1dd2a39d56c9afdc3778aa050b5a4725b4
net: dsa: Add ndo_get_phys_port_name() for CPU port

There is not currently way to infer the port number through sysfs that
is being used as the CPU port number. Overlay a ndo_get_phys_port_name()
operation onto the DSA master network device in order to retrieve that
information.

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