diff options
Diffstat (limited to 'include/linux/netdevice.h')
-rw-r--r-- | include/linux/netdevice.h | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/include/linux/netdevice.h b/include/linux/netdevice.h index 4d27368674db..60de65316fdb 100644 --- a/include/linux/netdevice.h +++ b/include/linux/netdevice.h | |||
@@ -666,7 +666,8 @@ struct netdev_rx_queue { | |||
666 | * Callback uses when the transmitter has not made any progress | 666 | * Callback uses when the transmitter has not made any progress |
667 | * for dev->watchdog ticks. | 667 | * for dev->watchdog ticks. |
668 | * | 668 | * |
669 | * struct rtnl_link_stats64* (*ndo_get_stats64)(struct net_device *dev); | 669 | * struct rtnl_link_stats64* (*ndo_get_stats64)(struct net_device *dev |
670 | * struct rtnl_link_stats64 *storage); | ||
670 | * struct net_device_stats* (*ndo_get_stats)(struct net_device *dev); | 671 | * struct net_device_stats* (*ndo_get_stats)(struct net_device *dev); |
671 | * Called when a user wants to get the network device usage | 672 | * Called when a user wants to get the network device usage |
672 | * statistics. Drivers must do one of the following: | 673 | * statistics. Drivers must do one of the following: |
@@ -733,7 +734,8 @@ struct net_device_ops { | |||
733 | struct neigh_parms *); | 734 | struct neigh_parms *); |
734 | void (*ndo_tx_timeout) (struct net_device *dev); | 735 | void (*ndo_tx_timeout) (struct net_device *dev); |
735 | 736 | ||
736 | struct rtnl_link_stats64* (*ndo_get_stats64)(struct net_device *dev); | 737 | struct rtnl_link_stats64* (*ndo_get_stats64)(struct net_device *dev, |
738 | struct rtnl_link_stats64 *storage); | ||
737 | struct net_device_stats* (*ndo_get_stats)(struct net_device *dev); | 739 | struct net_device_stats* (*ndo_get_stats)(struct net_device *dev); |
738 | 740 | ||
739 | void (*ndo_vlan_rx_register)(struct net_device *dev, | 741 | void (*ndo_vlan_rx_register)(struct net_device *dev, |
@@ -2139,8 +2141,10 @@ extern void netdev_features_change(struct net_device *dev); | |||
2139 | /* Load a device via the kmod */ | 2141 | /* Load a device via the kmod */ |
2140 | extern void dev_load(struct net *net, const char *name); | 2142 | extern void dev_load(struct net *net, const char *name); |
2141 | extern void dev_mcast_init(void); | 2143 | extern void dev_mcast_init(void); |
2142 | extern const struct rtnl_link_stats64 *dev_get_stats(struct net_device *dev); | 2144 | extern const struct rtnl_link_stats64 *dev_get_stats(struct net_device *dev, |
2143 | extern void dev_txq_stats_fold(const struct net_device *dev, struct net_device_stats *stats); | 2145 | struct rtnl_link_stats64 *storage); |
2146 | extern void dev_txq_stats_fold(const struct net_device *dev, | ||
2147 | struct net_device_stats *stats); | ||
2144 | 2148 | ||
2145 | extern int netdev_max_backlog; | 2149 | extern int netdev_max_backlog; |
2146 | extern int netdev_tstamp_prequeue; | 2150 | extern int netdev_tstamp_prequeue; |