Staging: batman-adv: move queue counters into bat_priv
authorSimon Wunderlich <siwu@hrz.tu-chemnitz.de>
Sat, 4 Sep 2010 23:58:23 +0000 (01:58 +0200)
committerGreg Kroah-Hartman <gregkh@suse.de>
Sun, 5 Sep 2010 07:29:44 +0000 (00:29 -0700)
commit7d02674f71e6369bb125354b23fd0abaa2edfcab
tree4aabb0dbe82f7272974750cf74d449b56201eeaf
parent8bb22a38d6083d751075829e84421b139dabb460
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>
drivers/staging/batman-adv/aggregation.c
drivers/staging/batman-adv/bat_sysfs.c
drivers/staging/batman-adv/main.c
drivers/staging/batman-adv/main.h
drivers/staging/batman-adv/send.c
drivers/staging/batman-adv/types.h