Skip to contentSkip to conversation

ipv6: add support for NETDEV_RESEND_IGMP event

PATCH Applied Vladislav Yasevich 2 participants 2 messages Mar 28, 2017 – Mar 29, 2017

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ipv6: add support for NETDEV_RESEND_IGMP event

This patch adds support for NETDEV_RESEND_IGMP event similar to how it works for IPv4.

---
 include/net/ndisc.h |  2 ++
 net/ipv6/af_inet6.c |  8 +++++++-
 net/ipv6/mcast.c    | 50 +++++++++++++++++++++++++++++++++++++++++++++++++-
 3 files changed, 58 insertions(+), 2 deletions(-)
include/net/ndisc.h +2 -0
index 8a02146..1036c90 100644
@@ -439,8 +439,10 @@ void ndisc_update(const struct net_device *dev, struct neighbour *neigh,
  *	IGMP
  */
 int igmp6_init(void);
+int igmp6_late_init(void);
 
 void igmp6_cleanup(void);
+void igmp6_late_cleanup(void);
 
 int igmp6_event_query(struct sk_buff *skb);
 
net/ipv6/af_inet6.c +7 -1
index a9a9553..1635d21 100644
@@ -1005,6 +1005,10 @@ static int __init inet6_init(void)
 	if (err)
 		goto seg6_fail;
 
+	err = igmp6_late_init();
+	if (err)
+		goto igmp6_late_err;
+
 #ifdef CONFIG_SYSCTL
 	err = ipv6_sysctl_register();
 	if (err)
@@ -1015,8 +1019,10 @@ static int __init inet6_init(void)
 
 #ifdef CONFIG_SYSCTL
 sysctl_fail:
-	seg6_exit();
+	igmp6_late_cleanup();
 #endif
+igmp6_late_err:
+	seg6_exit();
 seg6_fail:
 	calipso_exit();
 calipso_fail:
net/ipv6/mcast.c +49 -1

69 lines not on this page · raw message

Signature · 1 line
2.7.4
maintainer Applied
#1 lore raw

From: Vladislav Yasevich <[email protected]>
Date: Tue, 28 Mar 2017 14:49:16 -0400

Quoted 4 lines

This patch adds support for NETDEV_RESEND_IGMP event similar to how it works for IPv4.

Applied, but:

Quoted 8 lines
net/ipv6/mcast.c +5 -0
+void igmp6_late_cleanup(void)
+{
+	unregister_netdevice_notifier(&igmp6_netdev_notifier);
+}
+
Signature · 1 line
2.7.4

Do not add empty lines at the end of files like this.

Thanks.