Skip to contentSkip to conversation

sysfs & debugfs

B.A.T.M.A.N. Marek Lindner 3 participants 3 messages May 21, 2010 – May 22, 2010

lore
Share & tools
lore
#0 lore raw

Hi,

thanks to Sven's patches we made the transition to debugfs rather quickly. All batman tables (originator table / gateway table / translation tables) and the vis data output have been relocated to debugfs. Even the former batman device (used for layer2 icmp data) has been moved to debugfs which brings us an important step closer to the multiple mesh support.

@Andrew: I attached the revised sysfs ABI files. Do you think it is feasible to get these last patches into 2.6.35 ?

Cheers,
Marek

What:           /sys/class/net/<iface>/batman-adv/mesh_iface
Date:           May 2010
Contact:        Marek Lindner <[email protected]>

Description:
The /sys/class/net/<iface>/batman-adv/mesh_iface file displays the batman mesh interface this <iface> currently is associated with.

What:           /sys/class/net/<iface>/batman-adv/iface_status
Date:           May 2010
Contact:        Marek Lindner <[email protected]>
Description:
                Indicates the status of <iface> as it is seen by batman.

What:           /sys/class/net/<mesh_iface>/mesh/aggregated_ogms
Date:           May 2010
Contact:        Marek Lindner <[email protected]>

Description:
Indicates whether the batman protocol messages of the mesh <mesh_iface> shall be aggregated or not.

What:           /sys/class/net/<mesh_iface>/mesh/orig_interval
Date:           May 2010
Contact:        Marek Lindner <[email protected]>

Description:
Defines the interval in milliseconds in which batman sends its protocol messages.

What:           /sys/class/net/<mesh_iface>/mesh/vis_mode
Date:           May 2010
Contact:        Marek Lindner <[email protected]>

Description:
Each batman node only maintains information about its own local neighborhood, therefore generating graphs showing the topology of the entire mesh is not easily feasible without having a central instance to collect the local topologies from all nodes. This file allows to activate the collecting (server) mode. Once activated the topology can be retrieved by reading the vis_data file.

#1 lore raw
Quoted 2 lines

@Andrew: I attached the revised sysfs ABI files. Do you think it is feasible to get these last patches into 2.6.35 ?

The merge window is still open, so it might be possible.

However i unfortunately don't have the time at the moment. Maybe Sven could generate the patches against Linux next and submit them to Greg?

Andrew

#2 lore raw
Quoted 7 lines · Andrew Lunn
Quoted 2 lines

@Andrew: I attached the revised sysfs ABI files. Do you think it is feasible to get these last patches into 2.6.35 ?

The merge window is still open, so it might be possible.

However i unfortunately don't have the time at the moment. Maybe Sven could generate the patches against Linux next and submit them to Greg?

Ok, will do that today.

Best regards,
Sven