diff options
author | Ajit Khaparde <ajitk@serverengines.com> | 2009-10-07 12:11:20 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2009-10-07 12:11:20 +0200 |
commit | 78122a52b39c9527fa3a32afbb6572964c17c651 (patch) | |
tree | 4cb39c1ddba9d552224dc1b1724637b091953beb /drivers/net/benet/be_ethtool.c | |
parent | dcb: data center bridging ops should be r/o (diff) | |
download | linux-78122a52b39c9527fa3a32afbb6572964c17c651.tar.xz linux-78122a52b39c9527fa3a32afbb6572964c17c651.zip |
be2net: Get rid of net_device_stats from adapter.
adapter doesnot need to maintain a copy of net_device_stats.
Use the one already available in net_device. This patch takes care of the same.
Signed-off-by: Ajit Khaparde <ajitk@serverengines.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/benet/be_ethtool.c')
-rw-r--r-- | drivers/net/benet/be_ethtool.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/benet/be_ethtool.c b/drivers/net/benet/be_ethtool.c index 77c66da8738c..333729bd6d92 100644 --- a/drivers/net/benet/be_ethtool.c +++ b/drivers/net/benet/be_ethtool.c @@ -234,7 +234,7 @@ be_get_ethtool_stats(struct net_device *netdev, struct be_rxf_stats *rxf_stats = &hw_stats->rxf; struct be_port_rxf_stats *port_stats = &rxf_stats->port[adapter->port_num]; - struct net_device_stats *net_stats = &adapter->stats.net_stats; + struct net_device_stats *net_stats = &netdev->stats; struct be_erx_stats *erx_stats = &hw_stats->erx; void *p = NULL; int i; |