net: provide dev_lstats_read() helper
[linux-2.6-microblaze.git] / include / linux / netdevice.h
index 1f140a6..7556199 100644 (file)
@@ -2401,6 +2401,8 @@ struct pcpu_lstats {
        struct u64_stats_sync syncp;
 } __aligned(2 * sizeof(u64));
 
+void dev_lstats_read(struct net_device *dev, u64 *packets, u64 *bytes);
+
 #define __netdev_alloc_pcpu_stats(type, gfp)                           \
 ({                                                                     \
        typeof(type) __percpu *pcpu_stats = alloc_percpu_gfp(type, gfp);\