diff options
Diffstat (limited to 'include/uapi/linux/ethtool.h')
-rw-r--r-- | include/uapi/linux/ethtool.h | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/include/uapi/linux/ethtool.h b/include/uapi/linux/ethtool.h index e3c7a719c76b..99b43056a6fe 100644 --- a/include/uapi/linux/ethtool.h +++ b/include/uapi/linux/ethtool.h | |||
@@ -209,6 +209,33 @@ struct ethtool_value { | |||
209 | __u32 data; | 209 | __u32 data; |
210 | }; | 210 | }; |
211 | 211 | ||
212 | enum tunable_id { | ||
213 | ETHTOOL_ID_UNSPEC, | ||
214 | ETHTOOL_RX_COPYBREAK, | ||
215 | ETHTOOL_TX_COPYBREAK, | ||
216 | }; | ||
217 | |||
218 | enum tunable_type_id { | ||
219 | ETHTOOL_TUNABLE_UNSPEC, | ||
220 | ETHTOOL_TUNABLE_U8, | ||
221 | ETHTOOL_TUNABLE_U16, | ||
222 | ETHTOOL_TUNABLE_U32, | ||
223 | ETHTOOL_TUNABLE_U64, | ||
224 | ETHTOOL_TUNABLE_STRING, | ||
225 | ETHTOOL_TUNABLE_S8, | ||
226 | ETHTOOL_TUNABLE_S16, | ||
227 | ETHTOOL_TUNABLE_S32, | ||
228 | ETHTOOL_TUNABLE_S64, | ||
229 | }; | ||
230 | |||
231 | struct ethtool_tunable { | ||
232 | __u32 cmd; | ||
233 | __u32 id; | ||
234 | __u32 type_id; | ||
235 | __u32 len; | ||
236 | void *data[0]; | ||
237 | }; | ||
238 | |||
212 | /** | 239 | /** |
213 | * struct ethtool_regs - hardware register dump | 240 | * struct ethtool_regs - hardware register dump |
214 | * @cmd: Command number = %ETHTOOL_GREGS | 241 | * @cmd: Command number = %ETHTOOL_GREGS |
@@ -1152,6 +1179,8 @@ enum ethtool_sfeatures_retval_bits { | |||
1152 | 1179 | ||
1153 | #define ETHTOOL_GRSSH 0x00000046 /* Get RX flow hash configuration */ | 1180 | #define ETHTOOL_GRSSH 0x00000046 /* Get RX flow hash configuration */ |
1154 | #define ETHTOOL_SRSSH 0x00000047 /* Set RX flow hash configuration */ | 1181 | #define ETHTOOL_SRSSH 0x00000047 /* Set RX flow hash configuration */ |
1182 | #define ETHTOOL_GTUNABLE 0x00000048 /* Get tunable configuration */ | ||
1183 | #define ETHTOOL_STUNABLE 0x00000049 /* Set tunable configuration */ | ||
1155 | 1184 | ||
1156 | /* compatibility with older code */ | 1185 | /* compatibility with older code */ |
1157 | #define SPARC_ETH_GSET ETHTOOL_GSET | 1186 | #define SPARC_ETH_GSET ETHTOOL_GSET |