aboutsummaryrefslogtreecommitdiffstats
path: root/net/batman-adv
diff options
context:
space:
mode:
authorAntonio Quartulli <ordex@autistici.org>2012-11-25 19:27:29 -0500
committerAntonio Quartulli <ordex@autistici.org>2013-01-12 05:58:22 -0500
commitfa706554d6553331e886ce6fb86ca40b6dbc2083 (patch)
treeb68eb55c1ce66c7638eba6390921fe01772f0b45 /net/batman-adv
parent3f87c4239fa1df61beffbee2ca00e8ffbe31a5e3 (diff)
batman-adv: don't compile the BLA switch if not requested
When the Bridge Loop Avoidance component is not compiled-in, its boolean switch should be not compiled as well. This patch surrounds the switch with a proper ifdef. This behaviour was introduced by 9fd6b0615b5499b270d39a92b8790e206cf75833 ("batman-adv: add bridge loop avoidance compile option") Signed-off-by: Antonio Quartulli <ordex@autistici.org> Acked-by: Simon Wunderlich <siwu@hrz.tu-chemnitz.de> Signed-off-by: Marek Lindner <lindner_marek@yahoo.de>
Diffstat (limited to 'net/batman-adv')
-rw-r--r--net/batman-adv/soft-interface.c2
-rw-r--r--net/batman-adv/types.h2
2 files changed, 4 insertions, 0 deletions
diff --git a/net/batman-adv/soft-interface.c b/net/batman-adv/soft-interface.c
index f8cc1429942f..57714f83ede4 100644
--- a/net/batman-adv/soft-interface.c
+++ b/net/batman-adv/soft-interface.c
@@ -480,7 +480,9 @@ struct net_device *batadv_softif_create(const char *name)
480 480
481 atomic_set(&bat_priv->aggregated_ogms, 1); 481 atomic_set(&bat_priv->aggregated_ogms, 1);
482 atomic_set(&bat_priv->bonding, 0); 482 atomic_set(&bat_priv->bonding, 0);
483#ifdef CONFIG_BATMAN_ADV_BLA
483 atomic_set(&bat_priv->bridge_loop_avoidance, 0); 484 atomic_set(&bat_priv->bridge_loop_avoidance, 0);
485#endif
484#ifdef CONFIG_BATMAN_ADV_DAT 486#ifdef CONFIG_BATMAN_ADV_DAT
485 atomic_set(&bat_priv->distributed_arp_table, 1); 487 atomic_set(&bat_priv->distributed_arp_table, 1);
486#endif 488#endif
diff --git a/net/batman-adv/types.h b/net/batman-adv/types.h
index ae9ac9aca8c5..030ce412227e 100644
--- a/net/batman-adv/types.h
+++ b/net/batman-adv/types.h
@@ -273,7 +273,9 @@ struct batadv_priv {
273 atomic_t bonding; /* boolean */ 273 atomic_t bonding; /* boolean */
274 atomic_t fragmentation; /* boolean */ 274 atomic_t fragmentation; /* boolean */
275 atomic_t ap_isolation; /* boolean */ 275 atomic_t ap_isolation; /* boolean */
276#ifdef CONFIG_BATMAN_ADV_BLA
276 atomic_t bridge_loop_avoidance; /* boolean */ 277 atomic_t bridge_loop_avoidance; /* boolean */
278#endif
277#ifdef CONFIG_BATMAN_ADV_DAT 279#ifdef CONFIG_BATMAN_ADV_DAT
278 atomic_t distributed_arp_table; /* boolean */ 280 atomic_t distributed_arp_table; /* boolean */
279#endif 281#endif