netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Gerrit Renker <gerrit@erg.abdn.ac.uk>
To: Tomasz Grobelny <tomasz@grobelny.oswiecenia.net>
Cc: acme@redhat.com, dccp@vger.kernel.org, netdev@vger.kernel.org
Subject: Re: [PATCH 1/1] [DCCP][QPOLICY]: Make information about qpolicies available to userspace
Date: Wed, 4 Jun 2008 16:09:42 +0100	[thread overview]
Message-ID: <20080604150942.GA4980@gerrit.erg.abdn.ac.uk> (raw)
In-Reply-To: <200806011948.39770.tomasz@grobelny.oswiecenia.net>

| Now that I had a closer look at implementing this functionality I have a few 
| questions:
| 1. Where should information about available qpolicies and their parametrs be 
| exported? Would /proc/net/dccp/qpolicies/ be a good choice?
For a sketch or a first implementation, procfs sounds like a good starting point.

But since it is about dynamic runtime configuration, how about using sysfs or configfs
instead? This is a brainstorming question, I think that sysfs is generally preferred.
I don't know how well configfs has taken off, it is similar, but needs to be
added in the configuration (under Pseudeo Filesystems, CONFIG_CONFIGFS_FS=y|m)
http://lwn.net/Articles/148973/
and Documentation/filesystems/configs. But this could be done later as well.


| 2. I guess we should have at least one file per qpolicy with parameters listed 
| inside. Like that:
| /proc/.../qpolicies/simple: <empty>
| /proc/.../qpolicies/prio: 1 (DCCP_SCM_PRIORITY) 2 (DCCP_SCM_TIMEOUT)
Hm this is a "policy" question -- isn't the `timeout' policy a
standalone variant?

| But we could also have qpolicy represented by directory and parameters by files:
| /proc/.../qpolicies/simple/
| /proc/.../qpolicies/prio/
| /proc/.../qpolicies/prio/priority: <empty>
| /proc/.../qpolicies/prio/timeout: <empty>
| Which layout do you find better?
| -- 
I don't like the empty files. In the procfs for thinkpad Acpi
configuration, for example, there is a line that says which commands are
acceptable, similar for /sys/power/state. In that way, the (sysfs|procfs) file
documents itself and tells the user what can be done with it. It would
be great if the qpolicies could do something similar.

I would start with the utterly simplest possible implementation and
leave complex cases for later. For a sophisticated, elegant
implementation, I would seriously consider sysfs or configs.

  reply	other threads:[~2008-06-04 15:10 UTC|newest]

Thread overview: 28+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <20080517155916.34622BD22@poczta.oswiecenia.net>
2008-05-21 12:06 ` [PATCH 1/1] [DCCP][QPOLICY]: Make information about qpolicies available to userspace Gerrit Renker
2008-05-22  0:35   ` Tomasz Grobelny
2008-05-22 10:02     ` Gerrit Renker
2008-05-22 17:48       ` Tomasz Grobelny
2008-05-26 14:22         ` Gerrit Renker
2008-05-26 21:40           ` Tomasz Grobelny
2008-06-01 17:48             ` Tomasz Grobelny
2008-06-04 15:09               ` Gerrit Renker [this message]
2008-06-08 12:21                 ` Tomasz Grobelny
2008-06-10 11:49                   ` Gerrit Renker
2008-06-11 17:43                     ` Tomasz Grobelny
2008-06-12  9:07                       ` Gerrit Renker
2008-06-14 23:58                         ` Tomasz Grobelny
2008-06-17 11:16                           ` Gerrit Renker
2008-06-17 20:28                             ` Tomasz Grobelny
2008-06-17 20:47                               ` Randy.Dunlap
2008-06-18  9:40                               ` Gerrit Renker
2008-06-18 20:46                                 ` Tomasz Grobelny
2008-06-19  7:05                                   ` Gerrit Renker
2008-06-20 21:03                                     ` Tomasz Grobelny
2008-06-23 16:58                                       ` Gerrit Renker
2008-06-24  8:02                                         ` Tomasz Grobelny
2008-06-25 18:05                                           ` Gerrit Renker
2008-06-25 20:15                                             ` Tomasz Grobelny
2008-06-30 12:39                                               ` Gerrit Renker
2008-07-01 12:38                                                 ` Tomasz Grobelny
2008-06-02 10:21             ` Gerrit Renker
2008-06-02 21:56               ` Tomasz Grobelny

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20080604150942.GA4980@gerrit.erg.abdn.ac.uk \
    --to=gerrit@erg.abdn.ac.uk \
    --cc=acme@redhat.com \
    --cc=dccp@vger.kernel.org \
    --cc=netdev@vger.kernel.org \
    --cc=tomasz@grobelny.oswiecenia.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).