diff options
Diffstat (limited to 'drivers/net/netxen/netxen_nic_main.c')
-rw-r--r-- | drivers/net/netxen/netxen_nic_main.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/drivers/net/netxen/netxen_nic_main.c b/drivers/net/netxen/netxen_nic_main.c index c0788a31ff0f..30f41e62049a 100644 --- a/drivers/net/netxen/netxen_nic_main.c +++ b/drivers/net/netxen/netxen_nic_main.c | |||
@@ -92,7 +92,8 @@ static irqreturn_t netxen_msi_intr(int irq, void *data); | |||
92 | static irqreturn_t netxen_msix_intr(int irq, void *data); | 92 | static irqreturn_t netxen_msix_intr(int irq, void *data); |
93 | 93 | ||
94 | static void netxen_config_indev_addr(struct net_device *dev, unsigned long); | 94 | static void netxen_config_indev_addr(struct net_device *dev, unsigned long); |
95 | static struct net_device_stats *netxen_nic_get_stats(struct net_device *netdev); | 95 | static struct rtnl_link_stats64 *netxen_nic_get_stats(struct net_device *dev, |
96 | struct rtnl_link_stats64 *stats); | ||
96 | static int netxen_nic_set_mac(struct net_device *netdev, void *p); | 97 | static int netxen_nic_set_mac(struct net_device *netdev, void *p); |
97 | 98 | ||
98 | /* PCI Device ID Table */ | 99 | /* PCI Device ID Table */ |
@@ -520,7 +521,7 @@ static const struct net_device_ops netxen_netdev_ops = { | |||
520 | .ndo_open = netxen_nic_open, | 521 | .ndo_open = netxen_nic_open, |
521 | .ndo_stop = netxen_nic_close, | 522 | .ndo_stop = netxen_nic_close, |
522 | .ndo_start_xmit = netxen_nic_xmit_frame, | 523 | .ndo_start_xmit = netxen_nic_xmit_frame, |
523 | .ndo_get_stats = netxen_nic_get_stats, | 524 | .ndo_get_stats64 = netxen_nic_get_stats, |
524 | .ndo_validate_addr = eth_validate_addr, | 525 | .ndo_validate_addr = eth_validate_addr, |
525 | .ndo_set_multicast_list = netxen_set_multicast_list, | 526 | .ndo_set_multicast_list = netxen_set_multicast_list, |
526 | .ndo_set_mac_address = netxen_nic_set_mac, | 527 | .ndo_set_mac_address = netxen_nic_set_mac, |
@@ -2110,10 +2111,10 @@ request_reset: | |||
2110 | clear_bit(__NX_RESETTING, &adapter->state); | 2111 | clear_bit(__NX_RESETTING, &adapter->state); |
2111 | } | 2112 | } |
2112 | 2113 | ||
2113 | static struct net_device_stats *netxen_nic_get_stats(struct net_device *netdev) | 2114 | static struct rtnl_link_stats64 *netxen_nic_get_stats(struct net_device *netdev, |
2115 | struct rtnl_link_stats64 *stats) | ||
2114 | { | 2116 | { |
2115 | struct netxen_adapter *adapter = netdev_priv(netdev); | 2117 | struct netxen_adapter *adapter = netdev_priv(netdev); |
2116 | struct net_device_stats *stats = &netdev->stats; | ||
2117 | 2118 | ||
2118 | stats->rx_packets = adapter->stats.rx_pkts + adapter->stats.lro_pkts; | 2119 | stats->rx_packets = adapter->stats.rx_pkts + adapter->stats.lro_pkts; |
2119 | stats->tx_packets = adapter->stats.xmitfinished; | 2120 | stats->tx_packets = adapter->stats.xmitfinished; |