Merge pull request #2076 from T-X/bridge-mcast-wakeupcall
kernel: bridge: Implement MLD Querier wake-up calls / Android bug workaround
This commit is contained in:
commit
bdadb77a3c
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,57 @@
|
|||||||
|
From: Linus Lüssing <linus.luessing@c0d3.blue>
|
||||||
|
Date: Sun, 5 Jul 2020 04:02:17 +0200
|
||||||
|
Subject: batman-adv: compat: remove ip_mc_check_igmp() + ipv6_mc_check_mld()
|
||||||
|
|
||||||
|
The upstream Linux patches which reduced the number of arguments for
|
||||||
|
these functions from two to one were added to OpenWrt. Therefore compat
|
||||||
|
code for them is no more needed.
|
||||||
|
|
||||||
|
Signed-off-by: Linus Lüssing <linus.luessing@c0d3.blue>
|
||||||
|
|
||||||
|
diff --git a/batman-adv/src/compat-hacks.h b/batman-adv/src/compat-hacks.h
|
||||||
|
index d8de483a10243c77b2c5f49720a39dedb1404f01..1cbcfcf070c7dd943574612c0d13f886c88ecc25 100644
|
||||||
|
--- a/batman-adv/src/compat-hacks.h
|
||||||
|
+++ b/batman-adv/src/compat-hacks.h
|
||||||
|
@@ -53,39 +53,12 @@ int ipv6_mc_check_mld(struct sk_buff *skb);
|
||||||
|
|
||||||
|
#elif LINUX_VERSION_CODE < KERNEL_VERSION(5, 1, 0)
|
||||||
|
|
||||||
|
+#undef ip_mc_check_igmp
|
||||||
|
+#undef ipv6_mc_check_mld
|
||||||
|
+
|
||||||
|
#include_next <linux/igmp.h>
|
||||||
|
#include_next <net/addrconf.h>
|
||||||
|
|
||||||
|
-static inline int batadv_ipv6_mc_check_mld1(struct sk_buff *skb)
|
||||||
|
-{
|
||||||
|
- return ipv6_mc_check_mld(skb, NULL);
|
||||||
|
-}
|
||||||
|
-
|
||||||
|
-static inline int batadv_ipv6_mc_check_mld2(struct sk_buff *skb,
|
||||||
|
- struct sk_buff **skb_trimmed)
|
||||||
|
-{
|
||||||
|
- return ipv6_mc_check_mld(skb, skb_trimmed);
|
||||||
|
-}
|
||||||
|
-
|
||||||
|
-#define ipv6_mc_check_mld_get(_1, _2, ipv6_mc_check_mld_name, ...) ipv6_mc_check_mld_name
|
||||||
|
-#define ipv6_mc_check_mld(...) \
|
||||||
|
- ipv6_mc_check_mld_get(__VA_ARGS__, batadv_ipv6_mc_check_mld2, batadv_ipv6_mc_check_mld1)(__VA_ARGS__)
|
||||||
|
-
|
||||||
|
-static inline int batadv_ip_mc_check_igmp1(struct sk_buff *skb)
|
||||||
|
-{
|
||||||
|
- return ip_mc_check_igmp(skb, NULL);
|
||||||
|
-}
|
||||||
|
-
|
||||||
|
-static inline int batadv_ip_mc_check_igmp2(struct sk_buff *skb,
|
||||||
|
- struct sk_buff **skb_trimmed)
|
||||||
|
-{
|
||||||
|
- return ip_mc_check_igmp(skb, skb_trimmed);
|
||||||
|
-}
|
||||||
|
-
|
||||||
|
-#define ip_mc_check_igmp_get(_1, _2, ip_mc_check_igmp_name, ...) ip_mc_check_igmp_name
|
||||||
|
-#define ip_mc_check_igmp(...) \
|
||||||
|
- ip_mc_check_igmp_get(__VA_ARGS__, batadv_ip_mc_check_igmp2, batadv_ip_mc_check_igmp1)(__VA_ARGS__)
|
||||||
|
-
|
||||||
|
#endif /* < KERNEL_VERSION(4, 2, 0) */
|
||||||
|
|
||||||
|
#if LINUX_VERSION_CODE < KERNEL_VERSION(4, 3, 0)
|
Loading…
Reference in New Issue
Block a user