Commit d30362c0712eb567334b3b66de7c40d4372f2c6f
Committed by
David S. Miller
1 parent
2899656b49
Exists in
smarc-l5.0.0_1.0.0-ga
and in
5 other branches
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: Cong Wang <amwang@redhat.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Showing 1 changed file with 4 additions and 0 deletions Side-by-side Diff
net/bridge/br_if.c
... | ... | @@ -427,6 +427,10 @@ |
427 | 427 | if (!p || p->br != br) |
428 | 428 | return -EINVAL; |
429 | 429 | |
430 | + /* Since more than one interface can be attached to a bridge, | |
431 | + * there still maybe an alternate path for netconsole to use; | |
432 | + * therefore there is no reason for a NETDEV_RELEASE event. | |
433 | + */ | |
430 | 434 | del_nbp(p); |
431 | 435 | |
432 | 436 | spin_lock_bh(&br->lock); |