aboutsummaryrefslogtreecommitdiffstats
path: root/net/8021q/vlanproc.c
diff options
context:
space:
mode:
authorPatrick McHardy <kaber@trash.net>2008-01-21 03:19:31 -0500
committerDavid S. Miller <davem@davemloft.net>2008-01-28 18:08:25 -0500
commit7bd38d778e3f2250e96fc277040879d66c30ecb4 (patch)
tree555dbdf5c1cccc29710e53a428d979384451b05a /net/8021q/vlanproc.c
parentb7a4a83629c1ddde8c2e6a872618c66577cb20f0 (diff)
[VLAN]: Use dev->stats
Signed-off-by: Patrick McHardy <kaber@trash.net> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/8021q/vlanproc.c')
-rw-r--r--net/8021q/vlanproc.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/net/8021q/vlanproc.c b/net/8021q/vlanproc.c
index 6cefdf8e381a..1972d5cc34e4 100644
--- a/net/8021q/vlanproc.c
+++ b/net/8021q/vlanproc.c
@@ -316,7 +316,7 @@ static int vlandev_seq_show(struct seq_file *seq, void *offset)
316{ 316{
317 struct net_device *vlandev = (struct net_device *) seq->private; 317 struct net_device *vlandev = (struct net_device *) seq->private;
318 const struct vlan_dev_info *dev_info = VLAN_DEV_INFO(vlandev); 318 const struct vlan_dev_info *dev_info = VLAN_DEV_INFO(vlandev);
319 struct net_device_stats *stats; 319 struct net_device_stats *stats = &vlandev->stats;
320 static const char fmt[] = "%30s %12lu\n"; 320 static const char fmt[] = "%30s %12lu\n";
321 int i; 321 int i;
322 322
@@ -327,9 +327,6 @@ static int vlandev_seq_show(struct seq_file *seq, void *offset)
327 vlandev->name, dev_info->vlan_id, 327 vlandev->name, dev_info->vlan_id,
328 (int)(dev_info->flags & 1), vlandev->priv_flags); 328 (int)(dev_info->flags & 1), vlandev->priv_flags);
329 329
330
331 stats = vlan_dev_get_stats(vlandev);
332
333 seq_printf(seq, fmt, "total frames received", stats->rx_packets); 330 seq_printf(seq, fmt, "total frames received", stats->rx_packets);
334 seq_printf(seq, fmt, "total bytes received", stats->rx_bytes); 331 seq_printf(seq, fmt, "total bytes received", stats->rx_bytes);
335 seq_printf(seq, fmt, "Broadcast/Multicast Rcvd", stats->multicast); 332 seq_printf(seq, fmt, "Broadcast/Multicast Rcvd", stats->multicast);