From patchwork Tue Dec 18 21:43:44 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vlad Yasevich X-Patchwork-Id: 207220 X-Patchwork-Delegate: davem@davemloft.net Return-Path: X-Original-To: patchwork-incoming@ozlabs.org Delivered-To: patchwork-incoming@ozlabs.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 490112C0084 for ; Wed, 19 Dec 2012 08:43:50 +1100 (EST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754706Ab2LRVns (ORCPT ); Tue, 18 Dec 2012 16:43:48 -0500 Received: from mx1.redhat.com ([209.132.183.28]:32080 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752337Ab2LRVnr (ORCPT ); Tue, 18 Dec 2012 16:43:47 -0500 Received: from int-mx12.intmail.prod.int.phx2.redhat.com (int-mx12.intmail.prod.int.phx2.redhat.com [10.5.11.25]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id qBILhkvg023815 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Tue, 18 Dec 2012 16:43:46 -0500 Received: from galen.redhat.com (ovpn-113-82.phx2.redhat.com [10.3.113.82]) by int-mx12.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id qBILhi5J021210; Tue, 18 Dec 2012 16:43:45 -0500 From: Vlad Yasevich To: netdev@vger.kernel.org Cc: davem@davemloft.net, shemminger@vyatta.com Subject: [PATCH] bridge: Do not unregister PF_BRIDGE rtnl operations Date: Tue, 18 Dec 2012 16:43:44 -0500 Message-Id: <1355867024-12165-1-git-send-email-vyasevic@redhat.com> X-Scanned-By: MIMEDefang 2.68 on 10.5.11.25 Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org 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 --- net/bridge/br_netlink.c | 1 - 1 files changed, 0 insertions(+), 1 deletions(-) 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); }