aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/generic/files/include
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2015-01-18 00:53:59 +0000
committerFelix Fietkau <nbd@openwrt.org>2015-01-18 00:53:59 +0000
commitcdebbb98d120f54ea4cdcfda4936a5c5a37cb495 (patch)
tree46b1083334266143d5420b63926e86dee18e0cc4 /target/linux/generic/files/include
parentf128531b2af4f0f4c1b57d1c9661400379908714 (diff)
downloadmaster-187ad058-cdebbb98d120f54ea4cdcfda4936a5c5a37cb495.tar.gz
master-187ad058-cdebbb98d120f54ea4cdcfda4936a5c5a37cb495.tar.bz2
master-187ad058-cdebbb98d120f54ea4cdcfda4936a5c5a37cb495.zip
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> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@44022 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/generic/files/include')
-rw-r--r--target/linux/generic/files/include/linux/switch.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/target/linux/generic/files/include/linux/switch.h b/target/linux/generic/files/include/linux/switch.h
index b53431e0a1..4291364562 100644
--- a/target/linux/generic/files/include/linux/switch.h
+++ b/target/linux/generic/files/include/linux/switch.h
@@ -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 {