main.c (a402eae64d0ad12b1c4a411f250d6c161e67f623) | main.c (bc1f44709cf27fb2a5766cadafe7e2ad5e9cb221) |
---|---|
1/* 2 * Copyright (c) 2013 Johannes Berg <johannes@sipsolutions.net> 3 * 4 * This file is free software: you may copy, redistribute and/or modify it 5 * under the terms of the GNU General Public License as published by the 6 * Free Software Foundation, either version 2 of the License, or (at your 7 * option) any later version. 8 * --- 1629 unchanged lines hidden (view full) --- 1638 alx_intr_msix_ring(0, alx->qnapi[i]); 1639 } else if (alx->flags & ALX_FLAG_USING_MSI) 1640 alx_intr_msi(0, alx); 1641 else 1642 alx_intr_legacy(0, alx); 1643} 1644#endif 1645 | 1/* 2 * Copyright (c) 2013 Johannes Berg <johannes@sipsolutions.net> 3 * 4 * This file is free software: you may copy, redistribute and/or modify it 5 * under the terms of the GNU General Public License as published by the 6 * Free Software Foundation, either version 2 of the License, or (at your 7 * option) any later version. 8 * --- 1629 unchanged lines hidden (view full) --- 1638 alx_intr_msix_ring(0, alx->qnapi[i]); 1639 } else if (alx->flags & ALX_FLAG_USING_MSI) 1640 alx_intr_msi(0, alx); 1641 else 1642 alx_intr_legacy(0, alx); 1643} 1644#endif 1645 |
1646static struct rtnl_link_stats64 *alx_get_stats64(struct net_device *dev, 1647 struct rtnl_link_stats64 *net_stats) | 1646static void alx_get_stats64(struct net_device *dev, 1647 struct rtnl_link_stats64 *net_stats) |
1648{ 1649 struct alx_priv *alx = netdev_priv(dev); 1650 struct alx_hw_stats *hw_stats = &alx->hw.stats; 1651 1652 spin_lock(&alx->stats_lock); 1653 1654 alx_update_hw_stats(&alx->hw); 1655 --- 27 unchanged lines hidden (view full) --- 1683 net_stats->tx_aborted_errors = hw_stats->tx_abort_col; 1684 net_stats->tx_fifo_errors = hw_stats->tx_underrun; 1685 net_stats->tx_window_errors = hw_stats->tx_late_col; 1686 1687 net_stats->tx_packets = hw_stats->tx_ok + net_stats->tx_errors; 1688 net_stats->rx_packets = hw_stats->rx_ok + net_stats->rx_errors; 1689 1690 spin_unlock(&alx->stats_lock); | 1648{ 1649 struct alx_priv *alx = netdev_priv(dev); 1650 struct alx_hw_stats *hw_stats = &alx->hw.stats; 1651 1652 spin_lock(&alx->stats_lock); 1653 1654 alx_update_hw_stats(&alx->hw); 1655 --- 27 unchanged lines hidden (view full) --- 1683 net_stats->tx_aborted_errors = hw_stats->tx_abort_col; 1684 net_stats->tx_fifo_errors = hw_stats->tx_underrun; 1685 net_stats->tx_window_errors = hw_stats->tx_late_col; 1686 1687 net_stats->tx_packets = hw_stats->tx_ok + net_stats->tx_errors; 1688 net_stats->rx_packets = hw_stats->rx_ok + net_stats->rx_errors; 1689 1690 spin_unlock(&alx->stats_lock); |
1691 1692 return net_stats; | |
1693} 1694 1695static const struct net_device_ops alx_netdev_ops = { 1696 .ndo_open = alx_open, 1697 .ndo_stop = alx_stop, 1698 .ndo_start_xmit = alx_start_xmit, 1699 .ndo_get_stats64 = alx_get_stats64, 1700 .ndo_set_rx_mode = alx_set_rx_mode, --- 340 unchanged lines hidden --- | 1691} 1692 1693static const struct net_device_ops alx_netdev_ops = { 1694 .ndo_open = alx_open, 1695 .ndo_stop = alx_stop, 1696 .ndo_start_xmit = alx_start_xmit, 1697 .ndo_get_stats64 = alx_get_stats64, 1698 .ndo_set_rx_mode = alx_set_rx_mode, --- 340 unchanged lines hidden --- |