History

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.

Taehee Yoo committed 6 years ago

Commit 7151aff1 parent 064ff662 files · +6 −7Browse files

Showing the changes to include/linux (1 of 2 files). Show all

Unified · Split

include/linux/netdevice.h+3−4
@@ -72,6 +72,8 @@ void netdev_set_default_ethtool_ops(struct net_device *dev, · 71 unmodified lines
7272 #define NET_RX_SUCCESS 0 /* keep 'em coming, baby */
7373 #define NET_RX_DROP 1 /* packet dropped */
7474
75+#define MAX_NEST_DEV 8
76+
7577 /*
7678 * Transmit return codes: transmit return codes originate from three different
7779 * namespaces:
@@ -4389,11 +4391,8 @@ void *netdev_lower_get_next(struct net_device *dev, · 4311 unmodified lines
43894391 ldev; \
43904392 ldev = netdev_lower_get_next(dev, &(iter)))
43914393
4392−struct net_device *netdev_all_lower_get_next(struct net_device *dev,
4394+struct net_device *netdev_next_lower_dev_rcu(struct net_device *dev,
43934395 struct list_head **iter);
4394−struct net_device *netdev_all_lower_get_next_rcu(struct net_device *dev,
4395− struct list_head **iter);
4396−
43974396 int netdev_walk_all_lower_dev(struct net_device *dev,
43984397 int (*fn)(struct net_device *lower_dev,
43994398 void *data),