hsr: remove hsr interface if all slaves are removed
authorTaehee Yoo <ap420073@gmail.com>
Thu, 30 Apr 2020 17:37:02 +0000 (17:37 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 30 Apr 2020 20:25:18 +0000 (13:25 -0700)
commit34a9c361dd480041d790fff3d6ea58513c8769e8
tree7a1557a9c6bad4309b42eee6ebc267002aab6268
parent1b2e788490deef5e570ebe604b5cc50f82877c11
hsr: remove hsr interface if all slaves are removed

When all hsr slave interfaces are removed, hsr interface doesn't work.
At that moment, it's fine to remove an unused hsr interface automatically
for saving resources.
That's a common behavior of virtual interfaces.

Signed-off-by: Taehee Yoo <ap420073@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/hsr/hsr_main.c