All of lore.kernel.org
 help / color / mirror / Atom feed
* RFC for sysfs management of TIPC
@ 2012-02-09 19:14 Jon Maloy
  2012-02-09 19:19 ` David Miller
  0 siblings, 1 reply; 2+ messages in thread
From: Jon Maloy @ 2012-02-09 19:14 UTC (permalink / raw)
  To: netdev
  Cc: Xue, Ying (Ying.Xue@windriver.com),
	tipc-discussion, Stephens, Allan (allan.stephens@windriver.com)

TIPC currently provides a netlink interface towards a user space 
program (tipc-config), which is used to turn the different knobs
and levers of TIPC. 
This program is provided by some distributions package systems,
and is also downloadable from SourceForge.

Now, we are considering the option of making the configuration 
available as a structured tree in sysfs.
Before we invest any more time in this, we'd like to get feedback on 
whether people think this is a worthwhile change to undertake.

What follows below is an initial draft of what we think the user 
interface would look like.  If you have any feedback on whether you 
think this feature is a good idea, or if you think it isn't worth pursuing 
any further, we would appreciate your input.

/* 
  * The top level sysfs directory /tipc holds all global configuration.
  * The address file shall accept a string representation of a TIPC
  * address. The 'ports' and 'nametable' are read-only files that can
  * dump a list of active TIPC ports and published names.
  * The rest are integer attributes.
  */
/sys/.../tipc/
address maxports maxpub maxsubscr netid ports nametable


/* 
  * Each registered media type will have a directory under /media .
  * It should be possible to set default (integer) 
  * priority/windowsize/tolerance that will apply for all bearers 
  *enabled on a given media type 
  */
/sys/.../tipc/media/
priority tolerance windowsize


/* 
  * The /bearer directory have two persistent files to enable/disable
  * bearers.
  * By writing the bearer string to the add/delete file it will
  * subsequently be enabled or disabled. The bearer string is in the
  * format <media>:<interface name>
  */
/sys/.../tipc/bearer/
add delete

/* 
  * Each enabled bearer are represented by a directory under /bearer.
  * It should be possible to set the default (integer)
  * priority/windowsize/tolerance that will apply for all links enabled
  * over a given bearer.
  */
/sys/.../tipc/bearer/eth:eth1/
priority tolerance windowsize


/* 
  *All established links are listed as a separate directory under /link 
  */ 
/sys/.../tipc/link/

/* 
  * Each link have a set of attribute files, each containing 1 unique
  * integer value.
  * The statistics file holds per-link statistics that can be reset
  * with the 'reset' command
  */
/sys/.../tipc/link/1.1.1:eth1-1.1.2:eth1/
priority tolerance windowsize statistics

Regards
Jon Maloy
Erik Hugne

------------------------------------------------------------------------------
Virtualization & Cloud Management Using Capacity Planning
Cloud computing makes use of virtualization - but cloud computing 
also focuses on allowing computing to be delivered as a service.
http://www.accelacomm.com/jaw/sfnl/114/51521223/

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

* Re: RFC for sysfs management of TIPC
  2012-02-09 19:14 RFC for sysfs management of TIPC Jon Maloy
@ 2012-02-09 19:19 ` David Miller
  0 siblings, 0 replies; 2+ messages in thread
From: David Miller @ 2012-02-09 19:19 UTC (permalink / raw)
  To: jon.maloy
  Cc: netdev, tipc-discussion, allan.stephens, paul.gortmaker,
	erik.hugne, Ying.Xue

From: Jon Maloy <jon.maloy@ericsson.com>
Date: Thu, 9 Feb 2012 14:14:12 -0500

> TIPC currently provides a netlink interface towards a user space 
> program (tipc-config), which is used to turn the different knobs
> and levers of TIPC. 
> This program is provided by some distributions package systems,
> and is also downloadable from SourceForge.
> 
> Now, we are considering the option of making the configuration 
> available as a structured tree in sysfs.

If you've already made the netlink mechanism for all of this,
do not bother with SYSFS.

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

end of thread, other threads:[~2012-02-09 19:19 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-02-09 19:14 RFC for sysfs management of TIPC Jon Maloy
2012-02-09 19:19 ` David Miller

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.