batman-adv: restructure rebroadcast counter into forw_packet API
authorLinus Lüssing <linus.luessing@c0d3.blue>
Fri, 17 Feb 2017 10:17:07 +0000 (11:17 +0100)
committerSimon Wunderlich <sw@simonwunderlich.de>
Sun, 26 Mar 2017 10:46:44 +0000 (12:46 +0200)
commite2d9ba43559e5fcd94a365ba86718332737b0817
tree0ebe05e8cb92fd74c617b30c837a4ee3dc500dfd
parent99ba18ef0200a824e7bae73f358916b6e3624d62
batman-adv: restructure rebroadcast counter into forw_packet API

This patch refactors the num_packets counter of a forw_packet in the
following three ways:

1) Removed dual-use of forw_packet::num_packets:
   -> now for aggregation purposes only
2) Using forw_packet::skb::cb::num_bcasts instead:
   -> for easier access in aggregation code later
3) make access to num_bcasts private to batadv_forw_packet_*()

Signed-off-by: Linus Lüssing <linus.luessing@c0d3.blue>
[sven@narfation.org: Change num_bcasts to unsigned]
Signed-off-by: Sven Eckelmann <sven@narfation.org>
Signed-off-by: Simon Wunderlich <sw@simonwunderlich.de>
net/batman-adv/distributed-arp-table.c
net/batman-adv/main.c
net/batman-adv/send.c
net/batman-adv/send.h
net/batman-adv/soft-interface.c
net/batman-adv/types.h