aboutsummaryrefslogtreecommitdiffstats
path: root/net/batman-adv/hard-interface.h
diff options
context:
space:
mode:
authorDavid S. Miller <davem@davemloft.net>2012-06-25 19:15:58 -0400
committerDavid S. Miller <davem@davemloft.net>2012-06-25 19:18:10 -0400
commit1d5873e9d75bb72012a6c1327a368d0d2b13581f (patch)
tree20f4d5b75bdffbf1945008aabec946b8ff3f5053 /net/batman-adv/hard-interface.h
parent7665de15642dfb1709177517aa0488162727342c (diff)
parenta513088d022c8f59cebe17c567797c220563b517 (diff)
Merge tag 'batman-adv-for-davem' of git://git.open-mesh.org/linux-merge
Included changes: - yet another batch of 'namespace cleaning' patches Conflicts: net/batman-adv/translation-table.c Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/batman-adv/hard-interface.h')
-rw-r--r--net/batman-adv/hard-interface.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/net/batman-adv/hard-interface.h b/net/batman-adv/hard-interface.h
index 6bc12c0eb2f0..d66dabd620b7 100644
--- a/net/batman-adv/hard-interface.h
+++ b/net/batman-adv/hard-interface.h
@@ -42,14 +42,15 @@ void batadv_update_min_mtu(struct net_device *soft_iface);
42void batadv_hardif_free_rcu(struct rcu_head *rcu); 42void batadv_hardif_free_rcu(struct rcu_head *rcu);
43bool batadv_is_wifi_iface(int ifindex); 43bool batadv_is_wifi_iface(int ifindex);
44 44
45static inline void hardif_free_ref(struct hard_iface *hard_iface) 45static inline void
46batadv_hardif_free_ref(struct hard_iface *hard_iface)
46{ 47{
47 if (atomic_dec_and_test(&hard_iface->refcount)) 48 if (atomic_dec_and_test(&hard_iface->refcount))
48 call_rcu(&hard_iface->rcu, batadv_hardif_free_rcu); 49 call_rcu(&hard_iface->rcu, batadv_hardif_free_rcu);
49} 50}
50 51
51static inline struct hard_iface *primary_if_get_selected( 52static inline struct hard_iface *
52 struct bat_priv *bat_priv) 53batadv_primary_if_get_selected(struct bat_priv *bat_priv)
53{ 54{
54 struct hard_iface *hard_iface; 55 struct hard_iface *hard_iface;
55 56