ar8216: add 802.3az EEE info to swconfig get_link attribute

AR8327/AR8337 allow to read the result of EEE autonegotiation.
If EEE is autonegotiated between the link partners, display
this as part of the swconfig get_link attribute.

eee100:  100MBit EEE supported by both link partners
eee1000: 1GBit EEE supported by both link partners

Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>

SVN-Revision: 44022
This commit is contained in:
Felix Fietkau
2015-01-18 00:53:59 +00:00
parent bdc0750191
commit 53c0c6054f
5 changed files with 49 additions and 1 deletions

View File

@@ -54,6 +54,8 @@ struct switch_port_link {
bool tx_flow;
bool rx_flow;
enum switch_port_speed speed;
/* in ethtool adv_t format */
u32 eee;
};
struct switch_port_stats {