public inbox for netdev@vger.kernel.org
 help / color / mirror / Atom feed
* [patch net-next] vrf: add exit function and allow module unload
@ 2016-05-04 10:20 Jiri Pirko
  2016-05-04 10:23 ` Hannes Frederic Sowa
  0 siblings, 1 reply; 5+ messages in thread
From: Jiri Pirko @ 2016-05-04 10:20 UTC (permalink / raw)
  To: netdev; +Cc: davem, idosch, eladr, yotamg, dsa, shm

From: Jiri Pirko <jiri@mellanox.com>

Signed-off-by: Jiri Pirko <jiri@mellanox.com>
---
 drivers/net/vrf.c | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/drivers/net/vrf.c b/drivers/net/vrf.c
index 8a8f1e5..b217c2d 100644
--- a/drivers/net/vrf.c
+++ b/drivers/net/vrf.c
@@ -839,7 +839,14 @@ error:
 	return rc;
 }
 
+static void __exit vrf_exit_module(void)
+{
+	rtnl_link_unregister(&vrf_link_ops);
+	unregister_netdevice_notifier(&vrf_notifier_block);
+}
+
 module_init(vrf_init_module);
+module_exit(vrf_exit_module);
 MODULE_AUTHOR("Shrijeet Mukherjee, David Ahern");
 MODULE_DESCRIPTION("Device driver to instantiate VRF domains");
 MODULE_LICENSE("GPL");
-- 
2.5.5

^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2016-05-04 16:05 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-05-04 10:20 [patch net-next] vrf: add exit function and allow module unload Jiri Pirko
2016-05-04 10:23 ` Hannes Frederic Sowa
2016-05-04 10:24   ` Jiri Pirko
2016-05-04 15:59     ` David Miller
2016-05-04 16:05   ` David Ahern

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox