netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Thomas Graf <tgraf@suug.ch>
To: Andi Kleen <ak@suse.de>
Cc: netdev@oss.sgi.com
Subject: Re: [RFC] Extend netlink error codes
Date: Sat, 11 Sep 2004 18:24:33 +0200	[thread overview]
Message-ID: <20040911162433.GC21181@postel.suug.ch> (raw)
In-Reply-To: <20040911155839.GN4431@wotan.suse.de>

* Andi Kleen <20040911155839.GN4431@wotan.suse.de> 2004-09-11 17:58
> IMHO it would be far better to just pass text errors
> in a variable length packet back.  It's a bit plan9ish,
> but it would work nicely here and be a bit improvement
> (especially for the qdiscs) 

I had the same idea and the only good way to do so would
be to add a char * errbuf or alike to struct netlink_opt
and access it via skb.sk.sk_protinfo.

The bad side is that the for example cls and sch api don't
provide the skb to the implementing modules and therefore
they can't access the error buffer. I don't want to change
all netlink users because of this.

Changing all paths back to netlink_ack to provide a struct
containing the errno and an additional text error buffer is
no option for me either.

Correct me if I'm wrong.

> Otherwise you will end up with a mainteance nightmare of a
> long list of error codes that needs to be updated for every new
> subsystem.

I would suggst to split them up and assign blocks of free codes
to subsystems.

> And everybody who has a patch to add a new netlink
> user would always fight with conflicts in this file.

This is indeed a problem.

> I don't think an very specific error like
> "CFQ subsystem parameter X is FOO, can be only upto BAR" 
> can be nicely put into a global error file.

True, I would really like to have such error messages.

  reply	other threads:[~2004-09-11 16:24 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-09-10 22:51 [RFC] Extend netlink error codes Thomas Graf
2004-09-10 23:07 ` David S. Miller
2004-09-11  1:38   ` jamal
2004-09-11 15:49     ` Thomas Graf
2004-09-11 15:58 ` Andi Kleen
2004-09-11 16:24   ` Thomas Graf [this message]
2004-09-11 16:50     ` Andi Kleen
2004-09-11 17:57       ` Thomas Graf
2004-09-11 18:48     ` Sam Leffler
2004-09-11 21:10       ` jamal
2004-09-13 20:36         ` Thomas Graf
2004-09-13 23:28           ` David S. Miller
2004-09-14  2:00           ` jamal
2004-09-12 23:37     ` David S. Miller
2004-09-13  6:26       ` Andi Kleen
2004-09-13 19:33         ` David S. Miller

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=20040911162433.GC21181@postel.suug.ch \
    --to=tgraf@suug.ch \
    --cc=ak@suse.de \
    --cc=netdev@oss.sgi.com \
    /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).