diff options
Diffstat (limited to 'net/batman-adv/main.h')
| -rw-r--r-- | net/batman-adv/main.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/net/batman-adv/main.h b/net/batman-adv/main.h index 2f85577086a7..ced08b936a96 100644 --- a/net/batman-adv/main.h +++ b/net/batman-adv/main.h | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* Copyright (C) 2007-2012 B.A.T.M.A.N. contributors: | 1 | /* Copyright (C) 2007-2013 B.A.T.M.A.N. contributors: |
| 2 | * | 2 | * |
| 3 | * Marek Lindner, Simon Wunderlich | 3 | * Marek Lindner, Simon Wunderlich |
| 4 | * | 4 | * |
| @@ -26,7 +26,7 @@ | |||
| 26 | #define BATADV_DRIVER_DEVICE "batman-adv" | 26 | #define BATADV_DRIVER_DEVICE "batman-adv" |
| 27 | 27 | ||
| 28 | #ifndef BATADV_SOURCE_VERSION | 28 | #ifndef BATADV_SOURCE_VERSION |
| 29 | #define BATADV_SOURCE_VERSION "2012.5.0" | 29 | #define BATADV_SOURCE_VERSION "2013.1.0" |
| 30 | #endif | 30 | #endif |
| 31 | 31 | ||
| 32 | /* B.A.T.M.A.N. parameters */ | 32 | /* B.A.T.M.A.N. parameters */ |
| @@ -41,9 +41,11 @@ | |||
| 41 | * -> TODO: check influence on BATADV_TQ_LOCAL_WINDOW_SIZE | 41 | * -> TODO: check influence on BATADV_TQ_LOCAL_WINDOW_SIZE |
| 42 | */ | 42 | */ |
| 43 | #define BATADV_PURGE_TIMEOUT 200000 /* 200 seconds */ | 43 | #define BATADV_PURGE_TIMEOUT 200000 /* 200 seconds */ |
| 44 | #define BATADV_TT_LOCAL_TIMEOUT 3600000 /* in milliseconds */ | 44 | #define BATADV_TT_LOCAL_TIMEOUT 600000 /* in milliseconds */ |
| 45 | #define BATADV_TT_CLIENT_ROAM_TIMEOUT 600000 /* in milliseconds */ | 45 | #define BATADV_TT_CLIENT_ROAM_TIMEOUT 600000 /* in milliseconds */ |
| 46 | #define BATADV_TT_CLIENT_TEMP_TIMEOUT 600000 /* in milliseconds */ | 46 | #define BATADV_TT_CLIENT_TEMP_TIMEOUT 600000 /* in milliseconds */ |
| 47 | #define BATADV_TT_WORK_PERIOD 5000 /* 5 seconds */ | ||
| 48 | #define BATADV_ORIG_WORK_PERIOD 1000 /* 1 second */ | ||
| 47 | #define BATADV_DAT_ENTRY_TIMEOUT (5*60000) /* 5 mins in milliseconds */ | 49 | #define BATADV_DAT_ENTRY_TIMEOUT (5*60000) /* 5 mins in milliseconds */ |
| 48 | /* sliding packet range of received originator messages in sequence numbers | 50 | /* sliding packet range of received originator messages in sequence numbers |
| 49 | * (should be a multiple of our word size) | 51 | * (should be a multiple of our word size) |
| @@ -276,9 +278,7 @@ static inline bool batadv_has_timed_out(unsigned long timestamp, | |||
| 276 | static inline void batadv_add_counter(struct batadv_priv *bat_priv, size_t idx, | 278 | static inline void batadv_add_counter(struct batadv_priv *bat_priv, size_t idx, |
| 277 | size_t count) | 279 | size_t count) |
| 278 | { | 280 | { |
| 279 | int cpu = get_cpu(); | 281 | this_cpu_add(bat_priv->bat_counters[idx], count); |
| 280 | per_cpu_ptr(bat_priv->bat_counters, cpu)[idx] += count; | ||
| 281 | put_cpu(); | ||
| 282 | } | 282 | } |
| 283 | 283 | ||
| 284 | #define batadv_inc_counter(b, i) batadv_add_counter(b, i, 1) | 284 | #define batadv_inc_counter(b, i) batadv_add_counter(b, i, 1) |
