Patchwork bridge: Do not unregister PF_BRIDGE rtnl operations

login
register
mail settings
Submitter Vlad Yasevich
Date Dec. 18, 2012, 9:43 p.m.
Message ID <1355867024-12165-1-git-send-email-vyasevic@redhat.com>
Download mbox | patch
Permalink /patch/207220/
State Superseded
Delegated to: David Miller
Headers show

Comments

Vlad Yasevich - Dec. 18, 2012, 9:43 p.m.
Now that bridge rtnl ops are in core, do not undergister
all PF_BRIDGE ops when bridge module is unloaded.  It makes
it so that after reload, none of the messages work.

Signed-off-by: Vlad Yasevich <vyasevic@redhat.com>
---
 net/bridge/br_netlink.c |    1 -
 1 files changed, 0 insertions(+), 1 deletions(-)

Patch

diff --git a/net/bridge/br_netlink.c b/net/bridge/br_netlink.c
index dead9df..97ba018 100644
--- a/net/bridge/br_netlink.c
+++ b/net/bridge/br_netlink.c
@@ -305,5 +305,4 @@  int __init br_netlink_init(void)
 void __exit br_netlink_fini(void)
 {
 	rtnl_link_unregister(&br_link_ops);
-	rtnl_unregister_all(PF_BRIDGE);
 }