public inbox for b.a.t.m.a.n@lists.open-mesh.org
 help / color / mirror / Atom feed
* [B.A.T.M.A.N.] [RFC] batman-adv: switch routing algorithm at runtime
@ 2011-11-28 16:27 Marek Lindner
  2011-11-28 16:28 ` [B.A.T.M.A.N.] [PATCH 1/3] batman-adv: add infrastructure to change " Marek Lindner
  2011-11-28 18:47 ` [B.A.T.M.A.N.] [RFC] batman-adv: switch " Andrew Lunn
  0 siblings, 2 replies; 19+ messages in thread
From: Marek Lindner @ 2011-11-28 16:27 UTC (permalink / raw)
  To: b.a.t.m.a.n


Hi folks,

after the previous discussions how to proceed with BATMAN V we came to the 
conclusion that a runtime switch for changing the routing algorithms would be 
the best solution. Hence, I drafted a couple of patches that I'd like to get 
some feedback on. Note, that these patches are not ready to be included. For 
instance, the rcu locking isn't clean.

I'd like to focus your attention towards the following items:

 * How do we design the algorithm registration. At the moment batman_init() 
calls bat_iv_init() and possibly other algorithms in the future but this is 
less than ideal. I had hoped to find a mechanism which allows an init function 
to be declared and called inside of the respective routing algorithm files. 
These files can be compiled into the module or not.

* The API and its implementation. It is highly likely that this API won't 
survive for very long as it has been designed to satisfy one routing algorithm 
only. However, changing it in the future should be easy.

* Other ideas / comments ? 

Cheers,
Marek

^ permalink raw reply	[flat|nested] 19+ messages in thread
* [B.A.T.M.A.N.] switch routing algorithm at runtime
@ 2011-12-05  9:56 Marek Lindner
  2011-12-05  9:56 ` [B.A.T.M.A.N.] [PATCH 2/3] batman-adv: convert batman iv algorithm to use dynamic infrastructure Marek Lindner
  0 siblings, 1 reply; 19+ messages in thread
From: Marek Lindner @ 2011-12-05  9:56 UTC (permalink / raw)
  To: b.a.t.m.a.n

Hi,

I massaged the RFC patches a little longer to integrate all the feedback
received so far. They are ready to be considered 'real' patches now.

The 'dynamically load routing kernel module' feature has not found its
way into my patchset. At this point I still see no benefit and only
complications. The mentioned reasons (kernel folks might not like it /
helps to better abstract) can be addressed in a different way (for
example asking David if he is going to accept it or not). The only 
reason seems to be "because we can". That's not enough for me.
This does not mean we can't add this feature at a later point in time
when we have the feeling it actually brings some benefits.

Here the changelog:

 * sysfs documentation added
 * changed batman iv function prefix to bat_iv
 * renamed struct bat_algo to struct bat_algo_ops
 * all bat_algo_ops callbacks are mandatory for now
 * added struct bat_algo_ops documentation
 * introduced bat_algo.h for the routing algo init calls
 * bat_algo_ops->name became a pointer
 * removed all (unnecessary) locking from bat_algo_*

Cheers,
Marek



^ permalink raw reply	[flat|nested] 19+ messages in thread

end of thread, other threads:[~2011-12-06 19:20 UTC | newest]

Thread overview: 19+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-11-28 16:27 [B.A.T.M.A.N.] [RFC] batman-adv: switch routing algorithm at runtime Marek Lindner
2011-11-28 16:28 ` [B.A.T.M.A.N.] [PATCH 1/3] batman-adv: add infrastructure to change " Marek Lindner
2011-11-28 16:28   ` [B.A.T.M.A.N.] [PATCH 2/3] batman-adv: convert batman iv algorithm to use dynamic infrastructure Marek Lindner
2011-11-28 19:02     ` Andrew Lunn
2011-11-28 19:45       ` Marek Lindner
2011-11-29  6:09         ` Andrew Lunn
2011-11-29  6:35           ` Marek Lindner
2011-11-29  8:45             ` Andrew Lunn
2011-11-29 15:23     ` Simon Wunderlich
2011-12-04 20:00       ` Marek Lindner
2011-12-06 19:20         ` Simon Wunderlich
2011-11-28 16:28   ` [B.A.T.M.A.N.] [PATCH 3/3] batman-adv: allowing changing the routing algorithm via sysfs Marek Lindner
2011-11-28 19:00   ` [B.A.T.M.A.N.] [PATCH 1/3] batman-adv: add infrastructure to change routing algorithm at runtime Andrew Lunn
2011-11-28 18:47 ` [B.A.T.M.A.N.] [RFC] batman-adv: switch " Andrew Lunn
2011-11-28 19:42   ` Marek Lindner
2011-11-29  6:18     ` Andrew Lunn
2011-11-29  6:34       ` Marek Lindner
2011-11-29  8:02         ` Andrew Lunn
  -- strict thread matches above, loose matches on Subject: below --
2011-12-05  9:56 [B.A.T.M.A.N.] " Marek Lindner
2011-12-05  9:56 ` [B.A.T.M.A.N.] [PATCH 2/3] batman-adv: convert batman iv algorithm to use dynamic infrastructure Marek Lindner

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox