diff options
author | Ben Hutchings | 2009-10-01 13:24:32 +0200 |
---|---|---|
committer | David S. Miller | 2009-10-05 09:10:09 +0200 |
commit | df8b4ec8b15a5db84706548149add3131c3af8ba (patch) | |
tree | 0eeef4491dd963429a6ee24407d7a64e085d0001 /drivers/s390/net/qeth_core_main.c | |
parent | Linux 2.6.32-rc3 (diff) | |
download | kernel-qcow2-linux-df8b4ec8b15a5db84706548149add3131c3af8ba.tar.gz kernel-qcow2-linux-df8b4ec8b15a5db84706548149add3131c3af8ba.tar.xz kernel-qcow2-linux-df8b4ec8b15a5db84706548149add3131c3af8ba.zip |
qeth: Convert ethtool get_stats_count() ops to get_sset_count()
This string query operation was supposed to be replaced by the
generic get_sset_count() starting in 2007. Convert qeth's
implementation.
Signed-off-by: Ben Hutchings <bhutchings@solarflare.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/s390/net/qeth_core_main.c')
-rw-r--r-- | drivers/s390/net/qeth_core_main.c | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/drivers/s390/net/qeth_core_main.c b/drivers/s390/net/qeth_core_main.c index c4a42d970158..edee4dc6430c 100644 --- a/drivers/s390/net/qeth_core_main.c +++ b/drivers/s390/net/qeth_core_main.c @@ -4305,11 +4305,16 @@ static struct { {"tx csum"}, }; -int qeth_core_get_stats_count(struct net_device *dev) +int qeth_core_get_sset_count(struct net_device *dev, int stringset) { - return (sizeof(qeth_ethtool_stats_keys) / ETH_GSTRING_LEN); + switch (stringset) { + case ETH_SS_STATS: + return (sizeof(qeth_ethtool_stats_keys) / ETH_GSTRING_LEN); + default: + return -EINVAL; + } } -EXPORT_SYMBOL_GPL(qeth_core_get_stats_count); +EXPORT_SYMBOL_GPL(qeth_core_get_sset_count); void qeth_core_get_ethtool_stats(struct net_device *dev, struct ethtool_stats *stats, u64 *data) |