diff options
author | Tobias Klauser <tklauser@distanz.ch> | 2017-04-05 13:46:31 +0200 |
---|---|---|
committer | Simon Wunderlich <sw@simonwunderlich.de> | 2017-04-05 15:41:24 +0200 |
commit | ab044f8e3eaf84c4cc95d7606fadfdfa006dc8ec (patch) | |
tree | 9abb2f90924dacb4ad10a079458cc3c7205d8c76 /net/batman-adv/soft-interface.c | |
parent | 5405e19e705909bba1a879174ffe93e241455426 (diff) | |
download | talos-op-linux-ab044f8e3eaf84c4cc95d7606fadfdfa006dc8ec.tar.gz talos-op-linux-ab044f8e3eaf84c4cc95d7606fadfdfa006dc8ec.zip |
batman-adv: Use net_device_stats from struct net_device
Instead of using a private copy of struct net_device_stats in struct
batadv_priv, use stats from struct net_device.
Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
Signed-off-by: Sven Eckelmann <sven@narfation.org>
Signed-off-by: Simon Wunderlich <sw@simonwunderlich.de>
Diffstat (limited to 'net/batman-adv/soft-interface.c')
-rw-r--r-- | net/batman-adv/soft-interface.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/batman-adv/soft-interface.c b/net/batman-adv/soft-interface.c index f33bee08bd99..b223d3cacbae 100644 --- a/net/batman-adv/soft-interface.c +++ b/net/batman-adv/soft-interface.c @@ -118,7 +118,7 @@ static u64 batadv_sum_counter(struct batadv_priv *bat_priv, size_t idx) static struct net_device_stats *batadv_interface_stats(struct net_device *dev) { struct batadv_priv *bat_priv = netdev_priv(dev); - struct net_device_stats *stats = &bat_priv->stats; + struct net_device_stats *stats = &dev->stats; stats->tx_packets = batadv_sum_counter(bat_priv, BATADV_CNT_TX); stats->tx_bytes = batadv_sum_counter(bat_priv, BATADV_CNT_TX_BYTES); |