On Freitag, 17. Februar 2017 11:17:07 CEST Linus Lüssing wrote:
This patch refactors the num_packets counter of a forw_packet in the following three ways:
- Removed dual-use of forw_packet::num_packets: -> now for aggregation purposes only
- Using forw_packet::skb::cb::num_bcasts instead: -> for easier access in aggregation code later
- make access to num_bcasts private to batadv_forw_packet_*()
Signed-off-by: Linus Lüssing linus.luessing@c0d3.blue
net/batman-adv/distributed-arp-table.c | 2 +- net/batman-adv/main.c | 3 ++ net/batman-adv/send.c | 50 ++++++++++++++++++++++++++++++++-- net/batman-adv/send.h | 1 + net/batman-adv/soft-interface.c | 3 ++ net/batman-adv/types.h | 4 ++- 6 files changed, 58 insertions(+), 5 deletions(-)
Added this patch as c5d596e8b96e97da64c8aea759ddc016bca760a1 [1]. Have added it out of order to have at least the non-controversial "cleanup" patches integrated. The other patches can therefore use the provided functionality and you don't have to resent these patches anymore.
Thanks, Sven
[1] https://git.open-mesh.org/batman-adv.git/commit/c5d596e8b96e97da64c8aea759dd...