|
@@ -215,10 +215,12 @@ struct batadv_hard_iface {
|
|
|
struct batadv_hard_iface_bat_v bat_v;
|
|
|
#endif
|
|
|
|
|
|
+#ifdef CONFIG_BATMAN_ADV_DEBUGFS
|
|
|
/**
|
|
|
* @debug_dir: dentry for nc subdir in batman-adv directory in debugfs
|
|
|
*/
|
|
|
struct dentry *debug_dir;
|
|
|
+#endif
|
|
|
|
|
|
/**
|
|
|
* @neigh_list: list of unique single hop neighbors via this interface
|
|
@@ -1160,13 +1162,13 @@ struct batadv_priv_dat {
|
|
|
*/
|
|
|
struct batadv_mcast_querier_state {
|
|
|
/** @exists: whether a querier exists in the mesh */
|
|
|
- bool exists;
|
|
|
+ unsigned char exists:1;
|
|
|
|
|
|
/**
|
|
|
* @shadowing: if a querier exists, whether it is potentially shadowing
|
|
|
* multicast listeners (i.e. querier is behind our own bridge segment)
|
|
|
*/
|
|
|
- bool shadowing;
|
|
|
+ unsigned char shadowing:1;
|
|
|
};
|
|
|
|
|
|
/**
|
|
@@ -1207,13 +1209,10 @@ struct batadv_priv_mcast {
|
|
|
u8 flags;
|
|
|
|
|
|
/** @enabled: whether the multicast tvlv is currently enabled */
|
|
|
- bool enabled;
|
|
|
+ unsigned char enabled:1;
|
|
|
|
|
|
/** @bridged: whether the soft interface has a bridge on top */
|
|
|
- bool bridged;
|
|
|
-
|
|
|
- /** @num_disabled: number of nodes that have no mcast tvlv */
|
|
|
- atomic_t num_disabled;
|
|
|
+ unsigned char bridged:1;
|
|
|
|
|
|
/**
|
|
|
* @num_want_all_unsnoopables: number of nodes wanting unsnoopable IP
|
|
@@ -1245,10 +1244,12 @@ struct batadv_priv_nc {
|
|
|
/** @work: work queue callback item for cleanup */
|
|
|
struct delayed_work work;
|
|
|
|
|
|
+#ifdef CONFIG_BATMAN_ADV_DEBUGFS
|
|
|
/**
|
|
|
* @debug_dir: dentry for nc subdir in batman-adv directory in debugfs
|
|
|
*/
|
|
|
struct dentry *debug_dir;
|
|
|
+#endif
|
|
|
|
|
|
/**
|
|
|
* @min_tq: only consider neighbors for encoding if neigh_tq > min_tq
|
|
@@ -1392,7 +1393,7 @@ struct batadv_tp_vars {
|
|
|
atomic_t dup_acks;
|
|
|
|
|
|
/** @fast_recovery: true if in Fast Recovery mode */
|
|
|
- bool fast_recovery;
|
|
|
+ unsigned char fast_recovery:1;
|
|
|
|
|
|
/** @recover: last sent seqno when entering Fast Recovery */
|
|
|
u32 recover;
|
|
@@ -1601,8 +1602,10 @@ struct batadv_priv {
|
|
|
/** @mesh_obj: kobject for sysfs mesh subdirectory */
|
|
|
struct kobject *mesh_obj;
|
|
|
|
|
|
+#ifdef CONFIG_BATMAN_ADV_DEBUGFS
|
|
|
/** @debug_dir: dentry for debugfs batman-adv subdirectory */
|
|
|
struct dentry *debug_dir;
|
|
|
+#endif
|
|
|
|
|
|
/** @forw_bat_list: list of aggregated OGMs that will be forwarded */
|
|
|
struct hlist_head forw_bat_list;
|
|
@@ -2049,10 +2052,10 @@ struct batadv_skb_cb {
|
|
|
* @decoded: Marks a skb as decoded, which is checked when searching for
|
|
|
* coding opportunities in network-coding.c
|
|
|
*/
|
|
|
- bool decoded;
|
|
|
+ unsigned char decoded:1;
|
|
|
|
|
|
/** @num_bcasts: Counter for broadcast packet retransmissions */
|
|
|
- unsigned int num_bcasts;
|
|
|
+ unsigned char num_bcasts;
|
|
|
};
|
|
|
|
|
|
/**
|