aboutsummaryrefslogtreecommitdiffstats
path: root/net/batman-adv/main.h
diff options
context:
space:
mode:
authorSven Eckelmann <sven@narfation.org>2012-06-03 16:19:22 -0400
committerAntonio Quartulli <ordex@autistici.org>2012-07-01 16:47:19 -0400
commit39c75a51eda38ca5ce8b75f0a62a621eb3820a54 (patch)
tree22eb93745b165356b042c840e7581d844d9c2550 /net/batman-adv/main.h
parentacd34afa89772f6379b642bb979d0a112328c769 (diff)
batman-adv: Prefix main enum with BATADV_
Reported-by: Martin Hundebøll <martin@hundeboll.net> Signed-off-by: Sven Eckelmann <sven@narfation.org>
Diffstat (limited to 'net/batman-adv/main.h')
-rw-r--r--net/batman-adv/main.h36
1 files changed, 18 insertions, 18 deletions
diff --git a/net/batman-adv/main.h b/net/batman-adv/main.h
index 09660b4041f9..68e13ac08a0f 100644
--- a/net/batman-adv/main.h
+++ b/net/batman-adv/main.h
@@ -95,23 +95,23 @@
95#define BATADV_RESET_PROTECTION_MS 30000 95#define BATADV_RESET_PROTECTION_MS 30000
96#define BATADV_EXPECTED_SEQNO_RANGE 65536 96#define BATADV_EXPECTED_SEQNO_RANGE 65536
97 97
98enum mesh_state { 98enum batadv_mesh_state {
99 MESH_INACTIVE, 99 BATADV_MESH_INACTIVE,
100 MESH_ACTIVE, 100 BATADV_MESH_ACTIVE,
101 MESH_DEACTIVATING 101 BATADV_MESH_DEACTIVATING,
102}; 102};
103 103
104#define BATADV_BCAST_QUEUE_LEN 256 104#define BATADV_BCAST_QUEUE_LEN 256
105#define BATADV_BATMAN_QUEUE_LEN 256 105#define BATADV_BATMAN_QUEUE_LEN 256
106 106
107enum uev_action { 107enum batadv_uev_action {
108 UEV_ADD = 0, 108 BATADV_UEV_ADD = 0,
109 UEV_DEL, 109 BATADV_UEV_DEL,
110 UEV_CHANGE 110 BATADV_UEV_CHANGE,
111}; 111};
112 112
113enum uev_type { 113enum batadv_uev_type {
114 UEV_GW = 0 114 BATADV_UEV_GW = 0,
115}; 115};
116 116
117#define BATADV_GW_THRESHOLD 50 117#define BATADV_GW_THRESHOLD 50
@@ -124,12 +124,12 @@ enum uev_type {
124#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt 124#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
125 125
126/* all messages related to routing / flooding / broadcasting / etc */ 126/* all messages related to routing / flooding / broadcasting / etc */
127enum dbg_level { 127enum batadv_dbg_level {
128 DBG_BATMAN = 1 << 0, 128 BATADV_DBG_BATMAN = 1 << 0,
129 DBG_ROUTES = 1 << 1, /* route added / changed / deleted */ 129 BATADV_DBG_ROUTES = 1 << 1, /* route added / changed / deleted */
130 DBG_TT = 1 << 2, /* translation table operations */ 130 BATADV_DBG_TT = 1 << 2, /* translation table operations */
131 DBG_BLA = 1 << 3, /* bridge loop avoidance */ 131 BATADV_DBG_BLA = 1 << 3, /* bridge loop avoidance */
132 DBG_ALL = 15 132 BATADV_DBG_ALL = 15,
133}; 133};
134 134
135/* Kernel headers */ 135/* Kernel headers */
@@ -195,14 +195,14 @@ static inline void batadv_dbg(int type __always_unused,
195 do { \ 195 do { \
196 struct net_device *_netdev = (net_dev); \ 196 struct net_device *_netdev = (net_dev); \
197 struct bat_priv *_batpriv = netdev_priv(_netdev); \ 197 struct bat_priv *_batpriv = netdev_priv(_netdev); \
198 batadv_dbg(DBG_ALL, _batpriv, fmt, ## arg); \ 198 batadv_dbg(BATADV_DBG_ALL, _batpriv, fmt, ## arg); \
199 pr_info("%s: " fmt, _netdev->name, ## arg); \ 199 pr_info("%s: " fmt, _netdev->name, ## arg); \
200 } while (0) 200 } while (0)
201#define batadv_err(net_dev, fmt, arg...) \ 201#define batadv_err(net_dev, fmt, arg...) \
202 do { \ 202 do { \
203 struct net_device *_netdev = (net_dev); \ 203 struct net_device *_netdev = (net_dev); \
204 struct bat_priv *_batpriv = netdev_priv(_netdev); \ 204 struct bat_priv *_batpriv = netdev_priv(_netdev); \
205 batadv_dbg(DBG_ALL, _batpriv, fmt, ## arg); \ 205 batadv_dbg(BATADV_DBG_ALL, _batpriv, fmt, ## arg); \
206 pr_err("%s: " fmt, _netdev->name, ## arg); \ 206 pr_err("%s: " fmt, _netdev->name, ## arg); \
207 } while (0) 207 } while (0)
208 208