Commit a73be7fe authored by Tobias Klauser's avatar Tobias Klauser Committed by David S. Miller

net: cxgb3: Use net_device_stats from struct net_device

Instead of using a private copy of struct net_device_stats in
struct port_info, use stats from struct net_device.

Cc: Santosh Raspatur <santosh@chelsio.com>
Signed-off-by: default avatarTobias Klauser <tklauser@distanz.ch>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent a3bb4560
...@@ -72,7 +72,6 @@ struct port_info { ...@@ -72,7 +72,6 @@ struct port_info {
struct cphy phy; struct cphy phy;
struct cmac mac; struct cmac mac;
struct link_config link_config; struct link_config link_config;
struct net_device_stats netstats;
int activity; int activity;
__be32 iscsi_ipv4addr; __be32 iscsi_ipv4addr;
struct iscsi_config iscsic; struct iscsi_config iscsic;
......
...@@ -1489,7 +1489,7 @@ static struct net_device_stats *cxgb_get_stats(struct net_device *dev) ...@@ -1489,7 +1489,7 @@ static struct net_device_stats *cxgb_get_stats(struct net_device *dev)
{ {
struct port_info *pi = netdev_priv(dev); struct port_info *pi = netdev_priv(dev);
struct adapter *adapter = pi->adapter; struct adapter *adapter = pi->adapter;
struct net_device_stats *ns = &pi->netstats; struct net_device_stats *ns = &dev->stats;
const struct mac_stats *pstats; const struct mac_stats *pstats;
spin_lock(&adapter->stats_lock); spin_lock(&adapter->stats_lock);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment