]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/blobdiff - drivers/net/ethernet/chelsio/cxgb/cxgb2.c
net: cxgb: Use net_device_stats from struct net_device
[mirror_ubuntu-artful-kernel.git] / drivers / net / ethernet / chelsio / cxgb / cxgb2.c
index d8aff7a4b3c7cc087139cfefc022b4e8cf75fda5..8623be13bf86f2cc82f579daadc8121dcfb8432d 100644 (file)
@@ -296,7 +296,7 @@ static struct net_device_stats *t1_get_stats(struct net_device *dev)
 {
        struct adapter *adapter = dev->ml_priv;
        struct port_info *p = &adapter->port[dev->if_port];
-       struct net_device_stats *ns = &p->netstats;
+       struct net_device_stats *ns = &dev->stats;
        const struct cmac_statistics *pstats;
 
        /* Do a full update of the MAC stats */