[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <1343403484-29347-5-git-send-email-amwang@redhat.com>
Date: Fri, 27 Jul 2012 23:38:01 +0800
From: Cong Wang <amwang@...hat.com>
To: netdev@...r.kernel.org
Cc: Cong Wang <amwang@...hat.com>,
"David S. Miller" <davem@...emloft.net>,
Stephen Hemminger <shemminger@...tta.com>,
bridge@...ts.linux-foundation.org, linux-kernel@...r.kernel.org
Subject: [PATCH 4/7] bridge: call NETDEV_RELEASE notifier in br_del_if()
When a bridge interface deletes its underlying ports, it should
notify netconsole too, like what bonding interface does.
Cc: "David S. Miller" <davem@...emloft.net>
Signed-off-by: Cong Wang <amwang@...hat.com>
---
net/bridge/br_if.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/net/bridge/br_if.c b/net/bridge/br_if.c
index e1144e1..d243914 100644
--- a/net/bridge/br_if.c
+++ b/net/bridge/br_if.c
@@ -427,6 +427,7 @@ int br_del_if(struct net_bridge *br, struct net_device *dev)
if (!p || p->br != br)
return -EINVAL;
+ call_netdevice_notifiers(NETDEV_RELEASE, br->dev);
del_nbp(p);
spin_lock_bh(&br->lock);
--
1.7.7.6
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists