batman-adv: compat: Add atomic mc_forwarding support for stable kernels 853/head
authorSven Eckelmann <sven@narfation.org>
Sun, 17 Apr 2022 11:25:16 +0000 (13:25 +0200)
committerSven Eckelmann <sven@narfation.org>
Sun, 17 Apr 2022 12:07:15 +0000 (14:07 +0200)
commitb8461cc2999ad92bf16c71485cd6c13ad0497711
treedba54b3eb43ff6993932a4fd371dae940be20322
parent9e2383e9b42087d5a3892366bed8b6bb4f868fe3
batman-adv: compat: Add atomic mc_forwarding support for stable kernels

Eric Dumazet changed the mc_forwarding in commit 145c7a793838 ("ipv6: make
mc_forwarding atomic") the type of mc_forwarding from __s32 to an atomic_t.
This patch was then ported to various stable kernels.

This code change caused a FTBFS when in batman-adv when
CONFIG_BATMAN_ADV_MCAST was activated. To work around this problem, provide
a version for kernels with __s32 mc_forwarding and a version for kernel
with atomic_t mc_forwarding.

Fixes: #850
Reported-by: Huangbin Zhan <zhanhb88@gmail.com>
Signed-off-by: Sven Eckelmann <sven@narfation.org>
batman-adv/patches/0009-batman-adv-make-mc_forwarding-atomic.patch [new file with mode: 0644]
batman-adv/patches/0010-batman-adv-compat-Add-atomic-mc_fowarding-support-fo.patch [new file with mode: 0644]