Commit 541c1662 authored by Tobias Klauser's avatar Tobias Klauser Committed by Jeff Kirsher

ixgb: Omit private ndo_get_stats function

ixgb_get_stats() just returns dev->stats so we can leave it
out altogether and let dev_get_stats() do the job.
Suggested-by: default avatarJoe Perches <joe@perches.com>
Signed-off-by: default avatarTobias Klauser <tklauser@distanz.ch>
Tested-by: default avatarAaron Brown <aaron.f.brown@intel.com>
Signed-off-by: default avatarJeff Kirsher <jeffrey.t.kirsher@intel.com>
parent 14cf2ddf
...@@ -86,7 +86,6 @@ static void ixgb_set_multi(struct net_device *netdev); ...@@ -86,7 +86,6 @@ static void ixgb_set_multi(struct net_device *netdev);
static void ixgb_watchdog(unsigned long data); static void ixgb_watchdog(unsigned long data);
static netdev_tx_t ixgb_xmit_frame(struct sk_buff *skb, static netdev_tx_t ixgb_xmit_frame(struct sk_buff *skb,
struct net_device *netdev); struct net_device *netdev);
static struct net_device_stats *ixgb_get_stats(struct net_device *netdev);
static int ixgb_change_mtu(struct net_device *netdev, int new_mtu); static int ixgb_change_mtu(struct net_device *netdev, int new_mtu);
static int ixgb_set_mac(struct net_device *netdev, void *p); static int ixgb_set_mac(struct net_device *netdev, void *p);
static irqreturn_t ixgb_intr(int irq, void *data); static irqreturn_t ixgb_intr(int irq, void *data);
...@@ -367,7 +366,6 @@ static const struct net_device_ops ixgb_netdev_ops = { ...@@ -367,7 +366,6 @@ static const struct net_device_ops ixgb_netdev_ops = {
.ndo_open = ixgb_open, .ndo_open = ixgb_open,
.ndo_stop = ixgb_close, .ndo_stop = ixgb_close,
.ndo_start_xmit = ixgb_xmit_frame, .ndo_start_xmit = ixgb_xmit_frame,
.ndo_get_stats = ixgb_get_stats,
.ndo_set_rx_mode = ixgb_set_multi, .ndo_set_rx_mode = ixgb_set_multi,
.ndo_validate_addr = eth_validate_addr, .ndo_validate_addr = eth_validate_addr,
.ndo_set_mac_address = ixgb_set_mac, .ndo_set_mac_address = ixgb_set_mac,
...@@ -1596,20 +1594,6 @@ ixgb_tx_timeout_task(struct work_struct *work) ...@@ -1596,20 +1594,6 @@ ixgb_tx_timeout_task(struct work_struct *work)
ixgb_up(adapter); ixgb_up(adapter);
} }
/**
* ixgb_get_stats - Get System Network Statistics
* @netdev: network interface device structure
*
* Returns the address of the device statistics structure.
* The statistics are actually updated from the timer callback.
**/
static struct net_device_stats *
ixgb_get_stats(struct net_device *netdev)
{
return &netdev->stats;
}
/** /**
* ixgb_change_mtu - Change the Maximum Transfer Unit * ixgb_change_mtu - Change the Maximum Transfer Unit
* @netdev: network interface device structure * @netdev: network interface device structure
......
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