batman-adv: compat: Add atomic mc_forwarding support for stable kernels 851/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 11:25:16 +0000 (13:25 +0200)
commit73195d63dad515330a2c4c8af2baeba5a7321cb9
tree05cbc00d2a7c616c63f83af2cb17ec7e0b62aeb1
parent8574cb411a1437ad09f047c0e683a126d8ccdd95
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/0006-batman-adv-make-mc_forwarding-atomic.patch [new file with mode: 0644]
batman-adv/patches/0007-batman-adv-compat-Add-atomic-mc_fowarding-support-fo.patch [new file with mode: 0644]