summaryrefslogtreecommitdiffstats
path: root/net/8021q/vlanproc.c
diff options
context:
space:
mode:
authorPatrick McHardy <kaber@trash.net>2008-01-21 00:19:31 -0800
committerDavid S. Miller <davem@davemloft.net>2008-01-28 15:08:25 -0800
commit7bd38d778e3f2250e96fc277040879d66c30ecb4 (patch)
tree555dbdf5c1cccc29710e53a428d979384451b05a /net/8021q/vlanproc.c
parentb7a4a83629c1ddde8c2e6a872618c66577cb20f0 (diff)
downloadlinux-stable-7bd38d778e3f2250e96fc277040879d66c30ecb4.tar.gz
linux-stable-7bd38d778e3f2250e96fc277040879d66c30ecb4.tar.bz2
linux-stable-7bd38d778e3f2250e96fc277040879d66c30ecb4.zip
[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)
{
struct net_device *vlandev = (struct net_device *) seq->private;
const struct vlan_dev_info *dev_info = VLAN_DEV_INFO(vlandev);
- struct net_device_stats *stats;
+ struct net_device_stats *stats = &vlandev->stats;
static const char fmt[] = "%30s %12lu\n";
int i;
@@ -327,9 +327,6 @@ static int vlandev_seq_show(struct seq_file *seq, void *offset)
vlandev->name, dev_info->vlan_id,
(int)(dev_info->flags & 1), vlandev->priv_flags);
-
- stats = vlan_dev_get_stats(vlandev);
-
seq_printf(seq, fmt, "total frames received", stats->rx_packets);
seq_printf(seq, fmt, "total bytes received", stats->rx_bytes);
seq_printf(seq, fmt, "Broadcast/Multicast Rcvd", stats->multicast);