From: "David S. Miller" <davem@redhat.com>
To: Ben Greear <greearb@candelatech.com>
Cc: netdev@oss.sgi.com
Subject: Re: netdev_ops?
Date: Wed, 23 Jul 2003 01:15:51 -0700 [thread overview]
Message-ID: <20030723011551.5663a020.davem@redhat.com> (raw)
In-Reply-To: <3F1E4290.6020303@candelatech.com>
On Wed, 23 Jul 2003 01:08:48 -0700
Ben Greear <greearb@candelatech.com> wrote:
> Is it their choice to participate in the /proc/net/dev output?
Precisely yes, this is why they have the option of not
providing the ->get_stats() method by leaving it set
to NULL.
> > My final note: You don't even have the problem you claim to have.
> > Use your brain and 'grep' a little bit, ok? :-)
> >
> > egrep get_stats net/core/rtnetlink.c
> >
> > There it is, exactly what you need and supported on
> > every single kernel out there.
>
> Yep, I looked through that..and through libnetlink, and the complexity
> is not worth it.
Nice cop out.
Netlink is the standard method to obtain information about
network device, address, and route information. It is even
defined by an RFC.
We're not going to add a hack to the kernel just because you
think netlink is too complex. If it's too complex, you get
to live with the text based output.
I'll tell you this, the netlink version will work on more systems,
even ones that don't have /proc mounted.
Your patch duplicates existing functionality (getting network
statistics in binary form), so just based upon that I cannot allow
your patch.
next prev parent reply other threads:[~2003-07-23 8:15 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-07-23 5:06 netdev_ops? Ben Greear
2003-07-23 5:07 ` netdev_ops? David S. Miller
2003-07-23 5:30 ` netdev_ops? Ben Greear
2003-07-23 6:02 ` netdev_ops? David S. Miller
2003-07-23 6:24 ` netdev_ops? Ben Greear
2003-07-23 6:27 ` netdev_ops? David S. Miller
2003-07-23 6:36 ` netdev_ops? Ben Greear
2003-07-23 7:01 ` netdev_ops? David S. Miller
2003-07-23 7:28 ` netdev_ops? Ben Greear
2003-07-23 7:34 ` netdev_ops? David S. Miller
2003-07-23 8:08 ` netdev_ops? Ben Greear
2003-07-23 8:15 ` David S. Miller [this message]
2003-07-23 16:59 ` netdev_ops? Jeff Garzik
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=20030723011551.5663a020.davem@redhat.com \
--to=davem@redhat.com \
--cc=greearb@candelatech.com \
--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).