summaryrefslogtreecommitdiff
path: root/net/batman-adv/types.h
diff options
context:
space:
mode:
authorMarek Lindner <lindner_marek@yahoo.de>2011-01-19 20:01:42 +0000
committerMarek Lindner <lindner_marek@yahoo.de>2011-03-05 12:50:00 +0100
commit2ae2daf6c3f23364862a7d4f2ca79eab041b701b (patch)
tree8b4c15f4c7733d9d1d3aa58fd80b6f998b9eca2c /net/batman-adv/types.h
parent16b1aba849eeb45d51a5de731cf103143439ffe1 (diff)
batman-adv: protect ogm counter arrays with spinlock
Signed-off-by: Marek Lindner <lindner_marek@yahoo.de>
Diffstat (limited to 'net/batman-adv/types.h')
-rw-r--r--net/batman-adv/types.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/net/batman-adv/types.h b/net/batman-adv/types.h
index ca4d42d05912..ff70afc376da 100644
--- a/net/batman-adv/types.h
+++ b/net/batman-adv/types.h
@@ -89,6 +89,7 @@ struct orig_node {
struct kref refcount;
struct bat_priv *bat_priv;
unsigned long last_frag_packet;
+ spinlock_t ogm_cnt_lock; /* protects ogm counter */
struct {
uint8_t candidates;
struct neigh_node *selected;