summaryrefslogtreecommitdiffstats
path: root/drivers/staging/batman-adv/types.h
diff options
context:
space:
mode:
authorSimon Wunderlich <siwu@hrz.tu-chemnitz.de>2010-09-05 01:58:23 +0200
committerGreg Kroah-Hartman <gregkh@suse.de>2010-09-05 00:29:44 -0700
commit7d02674f71e6369bb125354b23fd0abaa2edfcab (patch)
tree4aabb0dbe82f7272974750cf74d449b56201eeaf /drivers/staging/batman-adv/types.h
parent8bb22a38d6083d751075829e84421b139dabb460 (diff)
downloadop-kernel-dev-7d02674f71e6369bb125354b23fd0abaa2edfcab.zip
op-kernel-dev-7d02674f71e6369bb125354b23fd0abaa2edfcab.tar.gz
Staging: batman-adv: move queue counters into bat_priv
to support multiple mesh devices later, we need to move global variables like the queues into corresponding private structs bat_priv of the soft devices. Note that this patch still has a lot of FIXMEs and depends on the global soft_device variable. This should be resolved later, e.g. by referencing the parent soft device in batman_if. Signed-off-by: Simon Wunderlich <siwu@hrz.tu-chemnitz.de> [sven.eckelmann@gmx.de: Rework on top of current version] Signed-off-by: Sven Eckelmann <sven.eckelmann@gmx.de> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/staging/batman-adv/types.h')
-rw-r--r--drivers/staging/batman-adv/types.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/staging/batman-adv/types.h b/drivers/staging/batman-adv/types.h
index 9aa9d36..67bf4db 100644
--- a/drivers/staging/batman-adv/types.h
+++ b/drivers/staging/batman-adv/types.h
@@ -113,6 +113,8 @@ struct bat_priv {
atomic_t vis_mode;
atomic_t orig_interval;
atomic_t log_level;
+ atomic_t bcast_queue_left;
+ atomic_t batman_queue_left;
char num_ifaces;
struct debug_log *debug_log;
struct batman_if *primary_if;
OpenPOWER on IntegriCloud