bridge: Do not unregister all PF_BRIDGE rtnl operations
Bridge fdb and link rtnl operations are registered in core/rtnetlink. Bridge mdb operations are registred in bridge/mdb. When removing bridge module, do not unregister ALL PF_BRIDGE ops since that would remove the ops from rtnetlink as well. Do remove mdb ops when bridge is destroyed. Signed-off-by: Vlad Yasevich <vyasevic@redhat.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
committed by
David S. Miller
parent
a5e40708c4
commit
63233159fd
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user