b.a.t.m.a.n.lists.open-mesh.org archive mirror
 help / color / mirror / Atom feed
* [B.A.T.M.A.N.] reorganized kernel interface
@ 2010-02-27 20:30 Marek Lindner
  2010-02-27 20:30 ` [B.A.T.M.A.N.] [PATCH 1/2] batman-adv: convert multiple /proc files to use sysfs Marek Lindner
  0 siblings, 1 reply; 10+ messages in thread
From: Marek Lindner @ 2010-02-27 20:30 UTC (permalink / raw)
  To: The list for a Better Approach To Mobile Ad-hoc Networking


Hi folks,

during the last batman developer meeting in Bruxelles we decided that it is 
time to reorganize the batman-adv kernel interface to address numerous issues 
and feature requests we have been hearing about throughout the last year. The 
required changes are extensive, therefore it will take a while to get it all 
sorted out.

Specifically we are targeting the following items:
* People with larger layer2 meshes have expressed the idea of having multiple 
meshes running on the same device in order to build a node which sits 
inbetween 2 (or more) mesh networks and routes the traffic from one to the other 
(thereby reducing the overhead). Due to code limitations batman-adv can only 
create a single mesh on a machine. There are numerous global variables and 
functions that need to be modfied in order to support multiple meshes.

* Despite the fact that we have a growing number of events which would allow 
user space applications to implement some intelligence to improve the mesh 
experience batman-adv has no way of communicating these events back to 
applications. To address this issue we will be moving batman-adv from /proc to 
sysfs which empowers batman-adv to trigger uevents that can be handled from 
user space.

* Since batman-adv's existence its parameter always were configurable using 
simple commands like echo or cat. Although this interface was easy it is not 
possible to direct error messages back to the shell, In case you misspelled a 
parameter you had to check the system logs to learn about it. The following 
patch introduces a way of exporting "allowed values", so that user space 
applications can parse it and alert the user immediately. See batctl as an 
example.

Please review and comment the following patches. As soon as those were 
digested I will send more.

Known issues:
* When sending a wrong input value to aggregate_ogm or bonding the kernel 
processes the input 3 times.

Cheers,
Marek


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

end of thread, other threads:[~2010-03-01  7:27 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-02-27 20:30 [B.A.T.M.A.N.] reorganized kernel interface Marek Lindner
2010-02-27 20:30 ` [B.A.T.M.A.N.] [PATCH 1/2] batman-adv: convert multiple /proc files to use sysfs Marek Lindner
2010-02-27 20:30   ` [B.A.T.M.A.N.] [PATCH 2/2] batctl: follow /proc to sysfs conversion & introduce input validation Marek Lindner
2010-03-01  1:51     ` Linus Lüssing
2010-03-01  6:06       ` Andrew Lunn
2010-03-01  7:17         ` Marek Lindner
2010-03-01  7:27       ` Marek Lindner
2010-02-28  9:37   ` [B.A.T.M.A.N.] [PATCH 1/2] batman-adv: convert multiple /proc files to use sysfs Andrew Lunn
2010-02-28 10:19     ` Marek Lindner
2010-02-28 17:47   ` Gus Wirth

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).