mirror of
https://github.com/Fishwaldo/linux-bl808.git
synced 2025-06-17 20:25:19 +00:00
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>
This commit is contained in:
parent
44543f1dd2
commit
da7b9e9b00
2 changed files with 60 additions and 1 deletions
|
@ -208,6 +208,11 @@ struct dsa_port {
|
|||
* Original copy of the master netdev ethtool_ops
|
||||
*/
|
||||
const struct ethtool_ops *orig_ethtool_ops;
|
||||
|
||||
/*
|
||||
* Original copy of the master netdev net_device_ops
|
||||
*/
|
||||
const struct net_device_ops *orig_ndo_ops;
|
||||
};
|
||||
|
||||
struct dsa_switch {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue