diff options
author | Antonio Quartulli <ordex@autistici.org> | 2012-09-23 22:38:34 +0200 |
---|---|---|
committer | Antonio Quartulli <ordex@autistici.org> | 2012-11-14 21:00:35 +0100 |
commit | 7c1fd91da5a5eecc91674991199940c05f87cb3a (patch) | |
tree | 9195dbbe9ea99a09540166dd571779d9b7fde478 /net/batman-adv/types.h | |
parent | 28709878b6a7d15362ba63bde01d42c38f88be9d (diff) | |
download | op-kernel-dev-7c1fd91da5a5eecc91674991199940c05f87cb3a.zip op-kernel-dev-7c1fd91da5a5eecc91674991199940c05f87cb3a.tar.gz |
batman-adv: substitute tt_poss_change with a per-tt_entry flag
tt_poss_change is a node-wide flag which tells whether the node is in a roaming
state (a client recently moved to/away from it) in order to let it apply special
re-routing rules. However this flag does not give a clear idea of the current
state because it is not possible to understand *which client* is actually
involved in the roaming. For this reason a better approach has been chosen:
instead of using a node-wide variable, the roaming state is now given by a
per-tt_entry ROAM flag which, in case of packet coming through the node, tells
the node whether the real destination is in roaming state or not.
With this flag change, batadv_check_unicast_ttvn() has also been rearranged in
order to better fit the new re-routing logic and to be much more readable.
Signed-off-by: Antonio Quartulli <ordex@autistici.org>
Diffstat (limited to 'net/batman-adv/types.h')
-rw-r--r-- | net/batman-adv/types.h | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/net/batman-adv/types.h b/net/batman-adv/types.h index fa09961..7b3d0d7 100644 --- a/net/batman-adv/types.h +++ b/net/batman-adv/types.h @@ -101,13 +101,6 @@ struct batadv_orig_node { spinlock_t tt_buff_lock; /* protects tt_buff */ atomic_t tt_size; bool tt_initialised; - /* The tt_poss_change flag is used to detect an ongoing roaming phase. - * If true, then I sent a Roaming_adv to this orig_node and I have to - * inspect every packet directed to it to check whether it is still - * the true destination or not. This flag will be reset to false as - * soon as I receive a new TTVN from this orig_node - */ - bool tt_poss_change; uint32_t last_real_seqno; uint8_t last_ttl; DECLARE_BITMAP(bcast_bits, BATADV_TQ_LOCAL_WINDOW_SIZE); @@ -212,7 +205,6 @@ struct batadv_priv_tt { atomic_t vn; atomic_t ogm_append_cnt; atomic_t local_changes; - bool poss_change; struct list_head changes_list; struct batadv_hashtable *local_hash; struct batadv_hashtable *global_hash; |