Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 122391
b: refs/heads/master
c: 9fd4287
h: refs/heads/master
i:
  122389: 068e222
  122387: 37b0606
  122383: 2d399a1
v: v3
  • Loading branch information
Ilpo Järvinen authored and David S. Miller committed Nov 28, 2008
1 parent fa74912 commit 758c013
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 10 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 6113b748fb9935399ec2bbca3a3dc82008f6167f
refs/heads/master: 9fd428761adbd5fbd7e23c312955eec1db8ace7a
16 changes: 8 additions & 8 deletions trunk/drivers/net/niu.c
Original file line number Diff line number Diff line change
Expand Up @@ -6078,10 +6078,10 @@ static void niu_get_rx_stats(struct niu *np)
dropped += rp->rx_dropped;
errors += rp->rx_errors;
}
np->net_stats.rx_packets = pkts;
np->net_stats.rx_bytes = bytes;
np->net_stats.rx_dropped = dropped;
np->net_stats.rx_errors = errors;
np->dev->stats.rx_packets = pkts;
np->dev->stats.rx_bytes = bytes;
np->dev->stats.rx_dropped = dropped;
np->dev->stats.rx_errors = errors;
}

static void niu_get_tx_stats(struct niu *np)
Expand All @@ -6097,9 +6097,9 @@ static void niu_get_tx_stats(struct niu *np)
bytes += rp->tx_bytes;
errors += rp->tx_errors;
}
np->net_stats.tx_packets = pkts;
np->net_stats.tx_bytes = bytes;
np->net_stats.tx_errors = errors;
np->dev->stats.tx_packets = pkts;
np->dev->stats.tx_bytes = bytes;
np->dev->stats.tx_errors = errors;
}

static struct net_device_stats *niu_get_stats(struct net_device *dev)
Expand All @@ -6109,7 +6109,7 @@ static struct net_device_stats *niu_get_stats(struct net_device *dev)
niu_get_rx_stats(np);
niu_get_tx_stats(np);

return &np->net_stats;
return &dev->stats;
}

static void niu_load_hash_xmac(struct niu *np, u16 *hash)
Expand Down
1 change: 0 additions & 1 deletion trunk/drivers/net/niu.h
Original file line number Diff line number Diff line change
Expand Up @@ -3249,7 +3249,6 @@ struct niu {
spinlock_t lock;

const struct niu_ops *ops;
struct net_device_stats net_stats;
union niu_mac_stats mac_stats;

struct rx_ring_info *rx_rings;
Expand Down

0 comments on commit 758c013

Please sign in to comment.