diff options
| author | Florian Fainelli <[email protected]> | 2019-01-15 14:43:04 -0800 |
|---|---|---|
| committer | David S. Miller <[email protected]> | 2019-01-16 21:12:21 -0800 |
| commit | da7b9e9b00d4859d0fa563d7fe9a2b2dff59e852 (patch) | |
| tree | 780c33a93ca4a8a13ca6dc3e5012e345fe5e5fe2 /include | |
| parent | 44543f1dd2a39d56c9afdc3778aa050b5a4725b4 (diff) | |
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 <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'include')
| -rw-r--r-- | include/net/dsa.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/net/dsa.h b/include/net/dsa.h index b3eefe8e18fd..2f1daf29131a 100644 --- a/include/net/dsa.h +++ b/include/net/dsa.h @@ -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 { |