diff options
author | Govindarajulu Varadarajan <_govind@gmx.com> | 2014-09-02 17:47:20 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2014-09-05 15:12:20 -0400 |
commit | f0db9b073415848709dd59a6394969882f517da9 (patch) | |
tree | f9d5de4b8528c4f5c55d04c5642ac4053489fe5e /include/linux | |
parent | a03bb56e67c357980dae886683733dab5583dc14 (diff) |
ethtool: Add generic options for tunables
This patch adds new ethtool cmd, ETHTOOL_GTUNABLE & ETHTOOL_STUNABLE for getting
tunable values from driver.
Add get_tunable and set_tunable to ethtool_ops. Driver implements these
functions for getting/setting tunable value.
Signed-off-by: Govindarajulu Varadarajan <_govind@gmx.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/linux')
-rw-r--r-- | include/linux/ethtool.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/linux/ethtool.h b/include/linux/ethtool.h index e658229fee39..c1a2d60dfb82 100644 --- a/include/linux/ethtool.h +++ b/include/linux/ethtool.h | |||
@@ -257,6 +257,10 @@ struct ethtool_ops { | |||
257 | struct ethtool_eeprom *, u8 *); | 257 | struct ethtool_eeprom *, u8 *); |
258 | int (*get_eee)(struct net_device *, struct ethtool_eee *); | 258 | int (*get_eee)(struct net_device *, struct ethtool_eee *); |
259 | int (*set_eee)(struct net_device *, struct ethtool_eee *); | 259 | int (*set_eee)(struct net_device *, struct ethtool_eee *); |
260 | int (*get_tunable)(struct net_device *, | ||
261 | const struct ethtool_tunable *, void *); | ||
262 | int (*set_tunable)(struct net_device *, | ||
263 | const struct ethtool_tunable *, const void *); | ||
260 | 264 | ||
261 | 265 | ||
262 | }; | 266 | }; |