hsr: use upper/lower device infrastructure
authorTaehee Yoo <ap420073@gmail.com>
Fri, 28 Feb 2020 18:02:10 +0000 (18:02 +0000)
committerDavid S. Miller <davem@davemloft.net>
Sun, 1 Mar 2020 05:37:03 +0000 (21:37 -0800)
commite0a4b99773d3d8d3fb40087805f8fd858a23e582
treeb0be89db312dca6289579c56a8259177aa1c2c6b
parent81390d0c4e56ac7752c97d7e8209357673d1a8ab
hsr: use upper/lower device infrastructure

netdev_upper_dev_link() is useful to manage lower/upper interfaces.
And this function internally validates looping, maximum depth.
All or most virtual interfaces that could have a real interface
(e.g. macsec, macvlan, ipvlan etc.) use lower/upper infrastructure.

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