Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d30362c0 authored by Amerigo Wang's avatar Amerigo Wang Committed by David S. Miller
Browse files

bridge: add some comments for NETDEV_RELEASE



Add comments on why we don't notify NETDEV_RELEASE.

Cc: David Miller <davem@davemloft.net>
Cc: Stephen Hemminger <shemminger@vyatta.com>
Signed-off-by: default avatarCong Wang <amwang@redhat.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 2899656b
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -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);