[B.A.T.M.A.N.] [RFC] batman-adv: postpone OGM preparation to sending time

2012-12-11 Thread Antonio Quartulli
OGMs are currently prepared 1 originator interval in advance then the time they are used to be sent. This means that once in the air they carry old information (e.g. TT announcements). To fix this, postpone the OGM creation to the same time of sending, in this way the OGM is first created and

Re: [B.A.T.M.A.N.] [RFC] batman-adv: postpone OGM preparation to sending time

2012-12-11 Thread Simon Wunderlich
On Tue, Dec 11, 2012 at 10:57:24PM +0100, Antonio Quartulli wrote: OGMs are currently prepared 1 originator interval in advance then the time they are used to be sent. This means that once in the air they carry old information (e.g. TT announcements). To fix this, postpone the OGM

[B.A.T.M.A.N.] [RFC] batman-adv: postpone sysfs removal when unregistering

2012-12-11 Thread Simon Wunderlich
When processing the unregister notify for a hard interface, removing the sysfs files may lead to a circular deadlock (rtnl mutex - s_active). To overcome this problem, postpone the sysfs removal in a worker. Reported-by: Sasha Levin sasha.le...@oracle.com Reported-by: Sven Eckelmann