diff options
Diffstat (limited to 'net/batman-adv/hard-interface.h')
-rw-r--r-- | net/batman-adv/hard-interface.h | 22 |
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 | ||
34 | extern struct notifier_block hard_if_notifier; | 34 | extern struct notifier_block batadv_hard_if_notifier; |
35 | 35 | ||
36 | struct hard_iface* | 36 | struct hard_iface* |
37 | hardif_get_by_netdev(const struct net_device *net_dev); | 37 | batadv_hardif_get_by_netdev(const struct net_device *net_dev); |
38 | int hardif_enable_interface(struct hard_iface *hard_iface, | 38 | int batadv_hardif_enable_interface(struct hard_iface *hard_iface, |
39 | const char *iface_name); | 39 | const char *iface_name); |
40 | void hardif_disable_interface(struct hard_iface *hard_iface); | 40 | void batadv_hardif_disable_interface(struct hard_iface *hard_iface); |
41 | void hardif_remove_interfaces(void); | 41 | void batadv_hardif_remove_interfaces(void); |
42 | int hardif_min_mtu(struct net_device *soft_iface); | 42 | int batadv_hardif_min_mtu(struct net_device *soft_iface); |
43 | void update_min_mtu(struct net_device *soft_iface); | 43 | void batadv_update_min_mtu(struct net_device *soft_iface); |
44 | void hardif_free_rcu(struct rcu_head *rcu); | 44 | void batadv_hardif_free_rcu(struct rcu_head *rcu); |
45 | bool is_wifi_iface(int ifindex); | 45 | bool batadv_is_wifi_iface(int ifindex); |
46 | 46 | ||
47 | static inline void hardif_free_ref(struct hard_iface *hard_iface) | 47 | static 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 | ||
53 | static inline struct hard_iface *primary_if_get_selected( | 53 | static inline struct hard_iface *primary_if_get_selected( |