Re: [B.A.T.M.A.N.] [PATCH 2/5] batman-adv: clear ADD+DEL (and viceversa) events in the same orig-interval

2012-04-18 Thread Martin Hundebøll
Hi Antonio, On 04/18/2012 12:27 AM, Antonio Quartulli wrote: During an OGM-interval (time between two different OGM sendings) the same client could roam away and then roam back to us. In this case the node would add two events to the events list (that is going to be sent appended to the next

Re: [B.A.T.M.A.N.] [PATCH 2/5] batman-adv: clear ADD+DEL (and viceversa) events in the same orig-interval

2012-04-18 Thread Antonio Quartulli
On Wed, Apr 18, 2012 at 10:33:34AM +0200, Martin Hundebøll wrote: Hi Antonio, On 04/18/2012 12:27 AM, Antonio Quartulli wrote: + /* check for ADD+DEL or DEL+ADD events */ spin_lock_bh(bat_priv-tt_changes_list_lock); + list_for_each_entry_safe(entry, safe,bat_priv-tt_changes_list,

Re: [B.A.T.M.A.N.] [PATCH 2/5] batman-adv: clear ADD+DEL (and viceversa) events in the same orig-interval

2012-04-18 Thread Martin Hundebøll
On 04/18/2012 10:37 AM, Antonio Quartulli wrote: On Wed, Apr 18, 2012 at 10:33:34AM +0200, Martin Hundebøll wrote: Hi Antonio, On 04/18/2012 12:27 AM, Antonio Quartulli wrote: + /* check for ADD+DEL or DEL+ADD events */ spin_lock_bh(bat_priv-tt_changes_list_lock); +

[B.A.T.M.A.N.] [PATCH 2/5] batman-adv: clear ADD+DEL (and viceversa) events in the same orig-interval

2012-04-17 Thread Antonio Quartulli
During an OGM-interval (time between two different OGM sendings) the same client could roam away and then roam back to us. In this case the node would add two events to the events list (that is going to be sent appended to the next OGM). A DEL one and an ADD one. Obviously they will only increase