]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit1beaefe7b777a22c8093e7769bfe6dcec8c3abd1
tree7a1557a9c6bad4309b42eee6ebc267002aab6268
parentfdcbbdcd75b5021d65f7ac115b6aeec0a9ced962
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