Commit b4ddf4b3 authored by Eric Dumazet's avatar Eric Dumazet Committed by David S. Miller

be2net: get rid of be_get_stats()

drivers can avoid implementing ndo_get_stats method if using netdevice
stats structure.
Signed-off-by: default avatarEric Dumazet <eric.dumazet@gmail.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 1726442e
...@@ -365,11 +365,6 @@ static void be_rx_eqd_update(struct be_adapter *adapter) ...@@ -365,11 +365,6 @@ static void be_rx_eqd_update(struct be_adapter *adapter)
rx_eq->cur_eqd = eqd; rx_eq->cur_eqd = eqd;
} }
static struct net_device_stats *be_get_stats(struct net_device *dev)
{
return &dev->stats;
}
static u32 be_calc_rate(u64 bytes, unsigned long ticks) static u32 be_calc_rate(u64 bytes, unsigned long ticks)
{ {
u64 rate = bytes; u64 rate = bytes;
...@@ -2399,7 +2394,6 @@ static struct net_device_ops be_netdev_ops = { ...@@ -2399,7 +2394,6 @@ static struct net_device_ops be_netdev_ops = {
.ndo_open = be_open, .ndo_open = be_open,
.ndo_stop = be_close, .ndo_stop = be_close,
.ndo_start_xmit = be_xmit, .ndo_start_xmit = be_xmit,
.ndo_get_stats = be_get_stats,
.ndo_set_rx_mode = be_set_multicast_list, .ndo_set_rx_mode = be_set_multicast_list,
.ndo_set_mac_address = be_mac_addr_set, .ndo_set_mac_address = be_mac_addr_set,
.ndo_change_mtu = be_change_mtu, .ndo_change_mtu = be_change_mtu,
......
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