Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 150493
b: refs/heads/master
c: d3f65f7
h: refs/heads/master
i:
  150491: 70dada5
v: v3
  • Loading branch information
Eric Dumazet authored and David S. Miller committed May 26, 2009
1 parent 57718d6 commit 16eb4fe
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 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: 08baf561083bc27a953aa087dd8a664bb2b88e8e
refs/heads/master: d3f65f7c3cf11b036bbc01f22ac5c958570e724c
1 change: 0 additions & 1 deletion trunk/drivers/net/atl1e/atl1e.h
Original file line number Diff line number Diff line change
Expand Up @@ -429,7 +429,6 @@ struct atl1e_adapter {
struct mii_if_info mii; /* MII interface info */
struct atl1e_hw hw;
struct atl1e_hw_stats hw_stats;
struct net_device_stats net_stats;

bool have_msi;
u32 wol;
Expand Down
6 changes: 3 additions & 3 deletions trunk/drivers/net/atl1e/atl1e_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -1153,7 +1153,7 @@ static struct net_device_stats *atl1e_get_stats(struct net_device *netdev)
{
struct atl1e_adapter *adapter = netdev_priv(netdev);
struct atl1e_hw_stats *hw_stats = &adapter->hw_stats;
struct net_device_stats *net_stats = &adapter->net_stats;
struct net_device_stats *net_stats = &netdev->stats;

net_stats->rx_packets = hw_stats->rx_ok;
net_stats->tx_packets = hw_stats->tx_ok;
Expand Down Expand Up @@ -1181,7 +1181,7 @@ static struct net_device_stats *atl1e_get_stats(struct net_device *netdev)
net_stats->tx_aborted_errors = hw_stats->tx_abort_col;
net_stats->tx_window_errors = hw_stats->tx_late_col;

return &adapter->net_stats;
return net_stats;
}

static void atl1e_update_hw_stats(struct atl1e_adapter *adapter)
Expand Down Expand Up @@ -1309,7 +1309,7 @@ static irqreturn_t atl1e_intr(int irq, void *data)

/* link event */
if (status & (ISR_GPHY | ISR_MANUAL)) {
adapter->net_stats.tx_carrier_errors++;
netdev->stats.tx_carrier_errors++;
atl1e_link_chg_event(adapter);
break;
}
Expand Down

0 comments on commit 16eb4fe

Please sign in to comment.