diff options
author | parav.pandit@emulex.com <parav.pandit@emulex.com> | 2012-06-26 23:56:12 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2012-06-27 18:42:24 -0400 |
commit | e440cf2ca0a1b075c64016240d46c3aa9d877bbf (patch) | |
tree | b1f184779750ce985f8a2372a2d24a4fea50714b /include/linux/ethtool.h | |
parent | 22911fc581f6a241e2897a7a8603e97344a6ec82 (diff) |
net: added support for 40GbE link.
1. removed code replication for tov calculation for 1G, 10G and
made is common for speed > 1G (1G, 10G, 40G, 100G).
2. defines values for #4 different 40G Phys (KR4, LF4, SR4, CR4)
Signed-off-by: Parav Pandit <parav.pandit@emulex.com>
Reviewed-by: Ben Hutchings <bhutchings@solarflare.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/linux/ethtool.h')
-rw-r--r-- | include/linux/ethtool.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/include/linux/ethtool.h b/include/linux/ethtool.h index 297370a6cb1..21eff418091 100644 --- a/include/linux/ethtool.h +++ b/include/linux/ethtool.h | |||
@@ -1153,6 +1153,10 @@ struct ethtool_ops { | |||
1153 | #define SUPPORTED_10000baseR_FEC (1 << 20) | 1153 | #define SUPPORTED_10000baseR_FEC (1 << 20) |
1154 | #define SUPPORTED_20000baseMLD2_Full (1 << 21) | 1154 | #define SUPPORTED_20000baseMLD2_Full (1 << 21) |
1155 | #define SUPPORTED_20000baseKR2_Full (1 << 22) | 1155 | #define SUPPORTED_20000baseKR2_Full (1 << 22) |
1156 | #define SUPPORTED_40000baseKR4_Full (1 << 23) | ||
1157 | #define SUPPORTED_40000baseCR4_Full (1 << 24) | ||
1158 | #define SUPPORTED_40000baseSR4_Full (1 << 25) | ||
1159 | #define SUPPORTED_40000baseLR4_Full (1 << 26) | ||
1156 | 1160 | ||
1157 | /* Indicates what features are advertised by the interface. */ | 1161 | /* Indicates what features are advertised by the interface. */ |
1158 | #define ADVERTISED_10baseT_Half (1 << 0) | 1162 | #define ADVERTISED_10baseT_Half (1 << 0) |
@@ -1178,6 +1182,10 @@ struct ethtool_ops { | |||
1178 | #define ADVERTISED_10000baseR_FEC (1 << 20) | 1182 | #define ADVERTISED_10000baseR_FEC (1 << 20) |
1179 | #define ADVERTISED_20000baseMLD2_Full (1 << 21) | 1183 | #define ADVERTISED_20000baseMLD2_Full (1 << 21) |
1180 | #define ADVERTISED_20000baseKR2_Full (1 << 22) | 1184 | #define ADVERTISED_20000baseKR2_Full (1 << 22) |
1185 | #define ADVERTISED_40000baseKR4_Full (1 << 23) | ||
1186 | #define ADVERTISED_40000baseCR4_Full (1 << 24) | ||
1187 | #define ADVERTISED_40000baseSR4_Full (1 << 25) | ||
1188 | #define ADVERTISED_40000baseLR4_Full (1 << 26) | ||
1181 | 1189 | ||
1182 | /* The following are all involved in forcing a particular link | 1190 | /* The following are all involved in forcing a particular link |
1183 | * mode for the device for setting things. When getting the | 1191 | * mode for the device for setting things. When getting the |