aboutsummaryrefslogtreecommitdiffstats
path: root/net/batman-adv
diff options
context:
space:
mode:
authorSven Eckelmann <sven@narfation.org>2012-05-16 14:23:14 -0400
committerAntonio Quartulli <ordex@autistici.org>2012-06-25 02:21:47 -0400
commitbb079c82e4274e32ae7592096d7e70bf4fa571ab (patch)
treec27cb0f76e5e54cbce38ae34d4152a44869ac1d1 /net/batman-adv
parent63b010371efebe6342b7f2bfad2f7881d03cf5f7 (diff)
batman-adv: Prefix send local static functions with batadv_
All non-static symbols of batman-adv were prefixed with batadv_ to avoid collisions with other symbols of the kernel. Other symbols of batman-adv should use the same prefix to keep the naming scheme consistent. Signed-off-by: Sven Eckelmann <sven@narfation.org>
Diffstat (limited to 'net/batman-adv')
-rw-r--r--net/batman-adv/send.c30
1 files changed, 15 insertions, 15 deletions
diff --git a/net/batman-adv/send.c b/net/batman-adv/send.c
index 47c3a41cd854..1842cbc280c7 100644
--- a/net/batman-adv/send.c
+++ b/net/batman-adv/send.c
@@ -27,7 +27,7 @@
27#include "gateway_common.h" 27#include "gateway_common.h"
28#include "originator.h" 28#include "originator.h"
29 29
30static void send_outstanding_bcast_packet(struct work_struct *work); 30static void batadv_send_outstanding_bcast_packet(struct work_struct *work);
31 31
32/* send out an already prepared packet to the given address via the 32/* send out an already prepared packet to the given address via the
33 * specified batman interface 33 * specified batman interface
@@ -96,7 +96,7 @@ void batadv_schedule_bat_ogm(struct hard_iface *hard_iface)
96 bat_priv->bat_algo_ops->bat_ogm_schedule(hard_iface); 96 bat_priv->bat_algo_ops->bat_ogm_schedule(hard_iface);
97} 97}
98 98
99static void forw_packet_free(struct forw_packet *forw_packet) 99static void batadv_forw_packet_free(struct forw_packet *forw_packet)
100{ 100{
101 if (forw_packet->skb) 101 if (forw_packet->skb)
102 kfree_skb(forw_packet->skb); 102 kfree_skb(forw_packet->skb);
@@ -105,9 +105,9 @@ static void forw_packet_free(struct forw_packet *forw_packet)
105 kfree(forw_packet); 105 kfree(forw_packet);
106} 106}
107 107
108static void _add_bcast_packet_to_list(struct bat_priv *bat_priv, 108static void _batadv_add_bcast_packet_to_list(struct bat_priv *bat_priv,
109 struct forw_packet *forw_packet, 109 struct forw_packet *forw_packet,
110 unsigned long send_time) 110 unsigned long send_time)
111{ 111{
112 INIT_HLIST_NODE(&forw_packet->list); 112 INIT_HLIST_NODE(&forw_packet->list);
113 113
@@ -118,7 +118,7 @@ static void _add_bcast_packet_to_list(struct bat_priv *bat_priv,
118 118
119 /* start timer for this packet */ 119 /* start timer for this packet */
120 INIT_DELAYED_WORK(&forw_packet->delayed_work, 120 INIT_DELAYED_WORK(&forw_packet->delayed_work,
121 send_outstanding_bcast_packet); 121 batadv_send_outstanding_bcast_packet);
122 queue_delayed_work(batadv_event_workqueue, &forw_packet->delayed_work, 122 queue_delayed_work(batadv_event_workqueue, &forw_packet->delayed_work,
123 send_time); 123 send_time);
124} 124}
@@ -171,7 +171,7 @@ int batadv_add_bcast_packet_to_list(struct bat_priv *bat_priv,
171 /* how often did we send the bcast packet ? */ 171 /* how often did we send the bcast packet ? */
172 forw_packet->num_packets = 0; 172 forw_packet->num_packets = 0;
173 173
174 _add_bcast_packet_to_list(bat_priv, forw_packet, delay); 174 _batadv_add_bcast_packet_to_list(bat_priv, forw_packet, delay);
175 return NETDEV_TX_OK; 175 return NETDEV_TX_OK;
176 176
177packet_free: 177packet_free:
@@ -184,7 +184,7 @@ out:
184 return NETDEV_TX_BUSY; 184 return NETDEV_TX_BUSY;
185} 185}
186 186
187static void send_outstanding_bcast_packet(struct work_struct *work) 187static void batadv_send_outstanding_bcast_packet(struct work_struct *work)
188{ 188{
189 struct hard_iface *hard_iface; 189 struct hard_iface *hard_iface;
190 struct delayed_work *delayed_work = 190 struct delayed_work *delayed_work =
@@ -220,13 +220,13 @@ static void send_outstanding_bcast_packet(struct work_struct *work)
220 220
221 /* if we still have some more bcasts to send */ 221 /* if we still have some more bcasts to send */
222 if (forw_packet->num_packets < 3) { 222 if (forw_packet->num_packets < 3) {
223 _add_bcast_packet_to_list(bat_priv, forw_packet, 223 _batadv_add_bcast_packet_to_list(bat_priv, forw_packet,
224 msecs_to_jiffies(5)); 224 msecs_to_jiffies(5));
225 return; 225 return;
226 } 226 }
227 227
228out: 228out:
229 forw_packet_free(forw_packet); 229 batadv_forw_packet_free(forw_packet);
230 atomic_inc(&bat_priv->bcast_queue_left); 230 atomic_inc(&bat_priv->bcast_queue_left);
231} 231}
232 232
@@ -260,7 +260,7 @@ out:
260 if (!forw_packet->own) 260 if (!forw_packet->own)
261 atomic_inc(&bat_priv->batman_queue_left); 261 atomic_inc(&bat_priv->batman_queue_left);
262 262
263 forw_packet_free(forw_packet); 263 batadv_forw_packet_free(forw_packet);
264} 264}
265 265
266void batadv_purge_outstanding_packets(struct bat_priv *bat_priv, 266void batadv_purge_outstanding_packets(struct bat_priv *bat_priv,
@@ -292,7 +292,7 @@ void batadv_purge_outstanding_packets(struct bat_priv *bat_priv,
292 292
293 spin_unlock_bh(&bat_priv->forw_bcast_list_lock); 293 spin_unlock_bh(&bat_priv->forw_bcast_list_lock);
294 294
295 /* send_outstanding_bcast_packet() will lock the list to 295 /* batadv_send_outstanding_bcast_packet() will lock the list to
296 * delete the item from the list 296 * delete the item from the list
297 */ 297 */
298 pending = cancel_delayed_work_sync(&forw_packet->delayed_work); 298 pending = cancel_delayed_work_sync(&forw_packet->delayed_work);
@@ -300,7 +300,7 @@ void batadv_purge_outstanding_packets(struct bat_priv *bat_priv,
300 300
301 if (pending) { 301 if (pending) {
302 hlist_del(&forw_packet->list); 302 hlist_del(&forw_packet->list);
303 forw_packet_free(forw_packet); 303 batadv_forw_packet_free(forw_packet);
304 } 304 }
305 } 305 }
306 spin_unlock_bh(&bat_priv->forw_bcast_list_lock); 306 spin_unlock_bh(&bat_priv->forw_bcast_list_lock);
@@ -327,7 +327,7 @@ void batadv_purge_outstanding_packets(struct bat_priv *bat_priv,
327 327
328 if (pending) { 328 if (pending) {
329 hlist_del(&forw_packet->list); 329 hlist_del(&forw_packet->list);
330 forw_packet_free(forw_packet); 330 batadv_forw_packet_free(forw_packet);
331 } 331 }
332 } 332 }
333 spin_unlock_bh(&bat_priv->forw_bat_list_lock); 333 spin_unlock_bh(&bat_priv->forw_bat_list_lock);