diff options
author | Marek Lindner <lindner_marek@yahoo.de> | 2012-06-23 13:47:53 +0400 |
---|---|---|
committer | Antonio Quartulli <ordex@autistici.org> | 2012-08-23 16:02:43 +0400 |
commit | 1c9b0550f4813c4931b4e142c80f5c89be9489ec (patch) | |
tree | 6c0434999f324b964a7fe837f855aa002080b213 /net/batman-adv/bridge_loop_avoidance.c | |
parent | 3eb8773e3a24d88ca528993af3756af70f307a82 (diff) | |
download | linux-1c9b0550f4813c4931b4e142c80f5c89be9489ec.tar.xz |
batman-adv: convert remaining packet counters to per_cpu_ptr() infrastructure
Signed-off-by: Marek Lindner <lindner_marek@yahoo.de>
Acked-by: Martin Hundebøll <martin@hundeboll.net>
Signed-off-by: Antonio Quartulli <ordex@autistici.org>
Diffstat (limited to 'net/batman-adv/bridge_loop_avoidance.c')
-rw-r--r-- | net/batman-adv/bridge_loop_avoidance.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/net/batman-adv/bridge_loop_avoidance.c b/net/batman-adv/bridge_loop_avoidance.c index 84dd8415ab6a..c9732acd59ff 100644 --- a/net/batman-adv/bridge_loop_avoidance.c +++ b/net/batman-adv/bridge_loop_avoidance.c @@ -340,8 +340,9 @@ static void batadv_bla_send_claim(struct batadv_priv *bat_priv, uint8_t *mac, skb_reset_mac_header(skb); skb->protocol = eth_type_trans(skb, soft_iface); - bat_priv->stats.rx_packets++; - bat_priv->stats.rx_bytes += skb->len + ETH_HLEN; + batadv_inc_counter(bat_priv, BATADV_CNT_RX); + batadv_add_counter(bat_priv, BATADV_CNT_RX_BYTES, + skb->len + ETH_HLEN); soft_iface->last_rx = jiffies; netif_rx(skb); |