diff options
Diffstat (limited to 'include/linux/netdevice.h')
-rw-r--r-- | include/linux/netdevice.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/include/linux/netdevice.h b/include/linux/netdevice.h index 95a613a7cc1c..9711108c3916 100644 --- a/include/linux/netdevice.h +++ b/include/linux/netdevice.h | |||
@@ -585,6 +585,13 @@ struct netdev_queue { | |||
585 | #endif | 585 | #endif |
586 | } ____cacheline_aligned_in_smp; | 586 | } ____cacheline_aligned_in_smp; |
587 | 587 | ||
588 | extern int sysctl_fb_tunnels_only_for_init_net; | ||
589 | |||
590 | static inline bool net_has_fallback_tunnels(const struct net *net) | ||
591 | { | ||
592 | return net == &init_net || !sysctl_fb_tunnels_only_for_init_net; | ||
593 | } | ||
594 | |||
588 | static inline int netdev_queue_numa_node_read(const struct netdev_queue *q) | 595 | static inline int netdev_queue_numa_node_read(const struct netdev_queue *q) |
589 | { | 596 | { |
590 | #if defined(CONFIG_XPS) && defined(CONFIG_NUMA) | 597 | #if defined(CONFIG_XPS) && defined(CONFIG_NUMA) |