aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/cxgb4/cxgb4_main.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/cxgb4/cxgb4_main.c')
-rw-r--r--drivers/net/cxgb4/cxgb4_main.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/net/cxgb4/cxgb4_main.c b/drivers/net/cxgb4/cxgb4_main.c
index baf4f0a31362..6bfe7d65ef17 100644
--- a/drivers/net/cxgb4/cxgb4_main.c
+++ b/drivers/net/cxgb4/cxgb4_main.c
@@ -2527,12 +2527,12 @@ static int cxgb_close(struct net_device *dev)
2527 return t4_enable_vi(adapter, 0, pi->viid, false, false); 2527 return t4_enable_vi(adapter, 0, pi->viid, false, false);
2528} 2528}
2529 2529
2530static struct net_device_stats *cxgb_get_stats(struct net_device *dev) 2530static struct rtnl_link_stats64 *cxgb_get_stats(struct net_device *dev)
2531{ 2531{
2532 struct port_stats stats; 2532 struct port_stats stats;
2533 struct port_info *p = netdev_priv(dev); 2533 struct port_info *p = netdev_priv(dev);
2534 struct adapter *adapter = p->adapter; 2534 struct adapter *adapter = p->adapter;
2535 struct net_device_stats *ns = &dev->stats; 2535 struct rtnl_link_stats64 *ns = &dev->stats64;
2536 2536
2537 spin_lock(&adapter->stats_lock); 2537 spin_lock(&adapter->stats_lock);
2538 t4_get_port_stats(adapter, p->tx_chan, &stats); 2538 t4_get_port_stats(adapter, p->tx_chan, &stats);
@@ -2675,7 +2675,7 @@ static const struct net_device_ops cxgb4_netdev_ops = {
2675 .ndo_open = cxgb_open, 2675 .ndo_open = cxgb_open,
2676 .ndo_stop = cxgb_close, 2676 .ndo_stop = cxgb_close,
2677 .ndo_start_xmit = t4_eth_xmit, 2677 .ndo_start_xmit = t4_eth_xmit,
2678 .ndo_get_stats = cxgb_get_stats, 2678 .ndo_get_stats64 = cxgb_get_stats,
2679 .ndo_set_rx_mode = cxgb_set_rxmode, 2679 .ndo_set_rx_mode = cxgb_set_rxmode,
2680 .ndo_set_mac_address = cxgb_set_mac_addr, 2680 .ndo_set_mac_address = cxgb_set_mac_addr,
2681 .ndo_validate_addr = eth_validate_addr, 2681 .ndo_validate_addr = eth_validate_addr,