net: export netdev_next_lower_dev_rcu()
authorTaehee Yoo <ap420073@gmail.com>
Sat, 15 Feb 2020 10:50:21 +0000 (10:50 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 17 Feb 2020 03:32:11 +0000 (19:32 -0800)
commit7151affeef8d527f50b4b68a871fd28bd660023f
treeeb514dcbc128ffdc4d3a5c7d73ba52a86319ee0c
parent064ff66e2bef84f1153087612032b5b9eab005bd
net: export netdev_next_lower_dev_rcu()

netdev_next_lower_dev_rcu() will be used to implement a function,
which is to walk all lower interfaces.
There are already functions that they walk their lower interface.
(netdev_walk_all_lower_dev_rcu, netdev_walk_all_lower_dev()).
But, there would be cases that couldn't be covered by given
netdev_walk_all_lower_dev_{rcu}() function.
So, some modules would want to implement own function,
which is to walk all lower interfaces.

In the next patch, netdev_next_lower_dev_rcu() will be used.
In addition, this patch removes two unused prototypes in netdevice.h.

Signed-off-by: Taehee Yoo <ap420073@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/linux/netdevice.h
net/core/dev.c