From: Amerigo Wang Date: Fri, 10 Aug 2012 01:24:43 +0000 (+0000) Subject: bridge: add some comments for NETDEV_RELEASE X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=d30362c0712eb567334b3b66de7c40d4372f2c6f;p=GitHub%2FLineageOS%2Fandroid_kernel_samsung_universal7580.git bridge: add some comments for NETDEV_RELEASE Add comments on why we don't notify NETDEV_RELEASE. Cc: David Miller Cc: Stephen Hemminger Signed-off-by: Cong Wang Signed-off-by: David S. Miller --- diff --git a/net/bridge/br_if.c b/net/bridge/br_if.c index 171fd6b9bfe..1c8fdc3558c 100644 --- a/net/bridge/br_if.c +++ b/net/bridge/br_if.c @@ -427,6 +427,10 @@ int br_del_if(struct net_bridge *br, struct net_device *dev) if (!p || p->br != br) return -EINVAL; + /* Since more than one interface can be attached to a bridge, + * there still maybe an alternate path for netconsole to use; + * therefore there is no reason for a NETDEV_RELEASE event. + */ del_nbp(p); spin_lock_bh(&br->lock);