aboutsummaryrefslogtreecommitdiffstats
path: root/net/batman-adv/hard-interface.h
diff options
context:
space:
mode:
Diffstat (limited to 'net/batman-adv/hard-interface.h')
-rw-r--r--net/batman-adv/hard-interface.h22
1 files changed, 11 insertions, 11 deletions
diff --git a/net/batman-adv/hard-interface.h b/net/batman-adv/hard-interface.h
index e68c5655e616..20e09db29d15 100644
--- a/net/batman-adv/hard-interface.h
+++ b/net/batman-adv/hard-interface.h
@@ -31,23 +31,23 @@ enum hard_if_state {
31 IF_I_WANT_YOU 31 IF_I_WANT_YOU
32}; 32};
33 33
34extern struct notifier_block hard_if_notifier; 34extern struct notifier_block batadv_hard_if_notifier;
35 35
36struct hard_iface* 36struct hard_iface*
37hardif_get_by_netdev(const struct net_device *net_dev); 37batadv_hardif_get_by_netdev(const struct net_device *net_dev);
38int hardif_enable_interface(struct hard_iface *hard_iface, 38int batadv_hardif_enable_interface(struct hard_iface *hard_iface,
39 const char *iface_name); 39 const char *iface_name);
40void hardif_disable_interface(struct hard_iface *hard_iface); 40void batadv_hardif_disable_interface(struct hard_iface *hard_iface);
41void hardif_remove_interfaces(void); 41void batadv_hardif_remove_interfaces(void);
42int hardif_min_mtu(struct net_device *soft_iface); 42int batadv_hardif_min_mtu(struct net_device *soft_iface);
43void update_min_mtu(struct net_device *soft_iface); 43void batadv_update_min_mtu(struct net_device *soft_iface);
44void hardif_free_rcu(struct rcu_head *rcu); 44void batadv_hardif_free_rcu(struct rcu_head *rcu);
45bool is_wifi_iface(int ifindex); 45bool batadv_is_wifi_iface(int ifindex);
46 46
47static inline void hardif_free_ref(struct hard_iface *hard_iface) 47static inline void hardif_free_ref(struct hard_iface *hard_iface)
48{ 48{
49 if (atomic_dec_and_test(&hard_iface->refcount)) 49 if (atomic_dec_and_test(&hard_iface->refcount))
50 call_rcu(&hard_iface->rcu, hardif_free_rcu); 50 call_rcu(&hard_iface->rcu, batadv_hardif_free_rcu);
51} 51}
52 52
53static inline struct hard_iface *primary_if_get_selected( 53static inline struct hard_iface *primary_if_get_selected(