|
@@ -2185,6 +2185,12 @@ void netdev_freemem(struct net_device *dev);
|
|
|
void synchronize_net(void);
|
|
void synchronize_net(void);
|
|
|
int init_dummy_netdev(struct net_device *dev);
|
|
int init_dummy_netdev(struct net_device *dev);
|
|
|
|
|
|
|
|
|
|
+DECLARE_PER_CPU(int, xmit_recursion);
|
|
|
|
|
+static inline int dev_recursion_level(void)
|
|
|
|
|
+{
|
|
|
|
|
+ return this_cpu_read(xmit_recursion);
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
struct net_device *dev_get_by_index(struct net *net, int ifindex);
|
|
struct net_device *dev_get_by_index(struct net *net, int ifindex);
|
|
|
struct net_device *__dev_get_by_index(struct net *net, int ifindex);
|
|
struct net_device *__dev_get_by_index(struct net *net, int ifindex);
|
|
|
struct net_device *dev_get_by_index_rcu(struct net *net, int ifindex);
|
|
struct net_device *dev_get_by_index_rcu(struct net *net, int ifindex);
|