aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux
diff options
context:
space:
mode:
authorJeff Garzik <jeff@garzik.org>2007-08-15 19:01:08 -0400
committerDavid S. Miller <davem@sunset.davemloft.net>2007-10-10 19:48:08 -0400
commitff03d49f0ca1959246068b315d26e009da692ff2 (patch)
tree210cf86efa9fd4430d0011c81956bef92c3d71a3 /include/linux
parent3ae7c0b2e3747b50c3a6c63ebb67469e0a6b3203 (diff)
[ETHTOOL]: Introduce get_sset_count. Obsolete get_stats_count, self_test_count
Signed-off-by: Jeff Garzik <jeff@garzik.org> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/ethtool.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/include/linux/ethtool.h b/include/linux/ethtool.h
index 0e5de2fb960c..f617998b87f1 100644
--- a/include/linux/ethtool.h
+++ b/include/linux/ethtool.h
@@ -376,11 +376,9 @@ struct ethtool_ops {
376 int (*set_sg)(struct net_device *, u32); 376 int (*set_sg)(struct net_device *, u32);
377 u32 (*get_tso)(struct net_device *); 377 u32 (*get_tso)(struct net_device *);
378 int (*set_tso)(struct net_device *, u32); 378 int (*set_tso)(struct net_device *, u32);
379 int (*self_test_count)(struct net_device *);
380 void (*self_test)(struct net_device *, struct ethtool_test *, u64 *); 379 void (*self_test)(struct net_device *, struct ethtool_test *, u64 *);
381 void (*get_strings)(struct net_device *, u32 stringset, u8 *); 380 void (*get_strings)(struct net_device *, u32 stringset, u8 *);
382 int (*phys_id)(struct net_device *, u32); 381 int (*phys_id)(struct net_device *, u32);
383 int (*get_stats_count)(struct net_device *);
384 void (*get_ethtool_stats)(struct net_device *, struct ethtool_stats *, u64 *); 382 void (*get_ethtool_stats)(struct net_device *, struct ethtool_stats *, u64 *);
385 int (*begin)(struct net_device *); 383 int (*begin)(struct net_device *);
386 void (*complete)(struct net_device *); 384 void (*complete)(struct net_device *);
@@ -388,6 +386,11 @@ struct ethtool_ops {
388 int (*set_ufo)(struct net_device *, u32); 386 int (*set_ufo)(struct net_device *, u32);
389 u32 (*get_flags)(struct net_device *); 387 u32 (*get_flags)(struct net_device *);
390 int (*set_flags)(struct net_device *, u32); 388 int (*set_flags)(struct net_device *, u32);
389 int (*get_sset_count)(struct net_device *, int);
390
391 /* the following hooks are obsolete */
392 int (*self_test_count)(struct net_device *);/* use get_sset_count */
393 int (*get_stats_count)(struct net_device *);/* use get_sset_count */
391}; 394};
392#endif /* __KERNEL__ */ 395#endif /* __KERNEL__ */
393 396