diff options
author | Marek Lindner <lindner_marek@yahoo.de> | 2011-02-18 07:33:20 -0500 |
---|---|---|
committer | Marek Lindner <lindner_marek@yahoo.de> | 2011-03-05 06:52:06 -0500 |
commit | e6c10f433af9c98994c94a10ae862c152fcfb2a9 (patch) | |
tree | 56b4a82b83da44f7c3657a283c92c5cc8e248b9f /net/batman-adv/hard-interface.h | |
parent | 4389e47af856635eb17d03b2572a50576c12db24 (diff) |
batman-adv: rename batman_if struct to hard_iface
Signed-off-by: Marek Lindner <lindner_marek@yahoo.de>
Diffstat (limited to 'net/batman-adv/hard-interface.h')
-rw-r--r-- | net/batman-adv/hard-interface.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/net/batman-adv/hard-interface.h b/net/batman-adv/hard-interface.h index e488b90b8fea..a9ddf36e51c8 100644 --- a/net/batman-adv/hard-interface.h +++ b/net/batman-adv/hard-interface.h | |||
@@ -31,18 +31,18 @@ | |||
31 | 31 | ||
32 | extern struct notifier_block hard_if_notifier; | 32 | extern struct notifier_block hard_if_notifier; |
33 | 33 | ||
34 | struct batman_if *get_batman_if_by_netdev(struct net_device *net_dev); | 34 | struct hard_iface *hardif_get_by_netdev(struct net_device *net_dev); |
35 | int hardif_enable_interface(struct batman_if *batman_if, char *iface_name); | 35 | int hardif_enable_interface(struct hard_iface *hard_iface, char *iface_name); |
36 | void hardif_disable_interface(struct batman_if *batman_if); | 36 | void hardif_disable_interface(struct hard_iface *hard_iface); |
37 | void hardif_remove_interfaces(void); | 37 | void hardif_remove_interfaces(void); |
38 | int hardif_min_mtu(struct net_device *soft_iface); | 38 | int hardif_min_mtu(struct net_device *soft_iface); |
39 | void update_min_mtu(struct net_device *soft_iface); | 39 | void update_min_mtu(struct net_device *soft_iface); |
40 | void hardif_free_rcu(struct rcu_head *rcu); | 40 | void hardif_free_rcu(struct rcu_head *rcu); |
41 | 41 | ||
42 | static inline void hardif_free_ref(struct batman_if *batman_if) | 42 | static inline void hardif_free_ref(struct hard_iface *hard_iface) |
43 | { | 43 | { |
44 | if (atomic_dec_and_test(&batman_if->refcount)) | 44 | if (atomic_dec_and_test(&hard_iface->refcount)) |
45 | call_rcu(&batman_if->rcu, hardif_free_rcu); | 45 | call_rcu(&hard_iface->rcu, hardif_free_rcu); |
46 | } | 46 | } |
47 | 47 | ||
48 | #endif /* _NET_BATMAN_ADV_HARD_INTERFACE_H_ */ | 48 | #endif /* _NET_BATMAN_ADV_HARD_INTERFACE_H_ */ |