summaryrefslogtreecommitdiffstats
path: root/net/batman-adv/bridge_loop_avoidance.c
diff options
context:
space:
mode:
authorMarek Lindner <lindner_marek@yahoo.de>2012-06-23 11:47:53 +0200
committerAntonio Quartulli <ordex@autistici.org>2012-08-23 14:02:43 +0200
commit1c9b0550f4813c4931b4e142c80f5c89be9489ec (patch)
tree6c0434999f324b964a7fe837f855aa002080b213 /net/batman-adv/bridge_loop_avoidance.c
parent3eb8773e3a24d88ca528993af3756af70f307a82 (diff)
downloadop-kernel-dev-1c9b0550f4813c4931b4e142c80f5c89be9489ec.zip
op-kernel-dev-1c9b0550f4813c4931b4e142c80f5c89be9489ec.tar.gz
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.c5
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 84dd841..c9732ac 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);
OpenPOWER on IntegriCloud