Thread (34 messages) 34 messages, 12 authors, 2008-06-04

Re: [PATCH updated] net: add ability to clear per-interface network statistics via procfs

From: Patrick McHardy <hidden>
Date: 2008-05-18 01:44:39
Also in: lkml

Possibly related (same subject, not in this thread)

Ben Hutchings wrote:
quoted
+                        dev = dev_get_by_name(net,devname);
+                        if (dev) {
+                                if (dev->get_stats) {
+                                        struct net_device_stats *stats =
+                                               dev->get_stats(dev);
+                                        memset(stats,0,
+                                               sizeof(struct 
net_device_stats));
This doesn't work for devices that generate the stats (for
example by reading them from the hardware) in ->get_stats().
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help