From: Nivedita Singhvi <niv@us.ibm.com>
To: "David S. Miller" <davem@redhat.com>
Cc: netdev@oss.sgi.com, linux-net@vger.kernel.org,
lksctp-developers@lists.sourceforge.net
Subject: Re: sctp snmp mib stats in /proc/net/snmp
Date: Tue, 05 Nov 2002 14:33:43 -0800 [thread overview]
Message-ID: <3DC84747.67C80B24@us.ibm.com> (raw)
In-Reply-To: 3DBEC628.75396DA@us.ibm.com
Nivedita Singhvi wrote:
>
> "David S. Miller" wrote:
> > Where will sctp_statistics be defined? If it will be in net/sctp/*.c,
> > then you will need to ifdef this ipv4 procfs code on CONFIG_IP_SCTP
>
> Rats, yes, it is in net/sctp/protocol.c. I'll move it under the ifdef
> and make up a complete patch with the dependent code for review
> purposes and repost. Thanks for the catch!
My apologies for the latency in getting back on this (critical
interrupts from other directions)..
We're considering a modification to the original proposal, which
was to display SCTP SNMP stats in /proc/net/snmp along with the
other AF_INET protocols currently being displayed.
We're now considering simply displaying the sctp stats structures
(snmp and other extended) under the /proc/net/sctp/ subdirectory.
This is due to several reasons - one is that the CONFIG_IP_SCTP
def isnt enough. SCTP can also be compiled as a module, and may
or may not be loaded. We cant make assumptions in net/ipv4/proc.c
about whether the sctp_statistics structure is available or not..
Note #if defined (CONFIG_IP_SCTP) || defined (CONFIG_IP_SCTP_MODULE)
isnt enough. A clean way to do this would be to have an af_inet
top level registration process and have the sctp module register
when loaded, as is typical elsewhere. We really dont want to do
this at this point, and introduce too many dependencies on directories
outside of net/sctp at this time.
Secondly, the SCTP MIB is still being formed, and we're probably
going to need additions/changes to the spec. In the interim, (or
possibly, permanently) we're going to need extended sctp stats which
arent in the spec, much like the current linux mib struct which
defines a set of extended TCP counters.
It would be easier to manage this under the sctp subdirectory
altogether. i.e. We diplay the SCTP SNMP and other extended stats
as /proc/net/sctp/snmp and /proc/net/sctp/sctp_mib or some such
name (which would be somewhat dynamic short term). This would also
solve unnecessary duplication for AF_INET6 for us.
Any issues, thoughts, suggestions?
thanks,
Nivedita
next prev parent reply other threads:[~2002-11-05 22:33 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-10-29 17:21 sctp snmp mib stats in /proc/net/snmp Nivedita Singhvi
2002-10-29 17:18 ` David S. Miller
2002-10-29 17:32 ` Nivedita Singhvi
2002-11-05 22:33 ` Nivedita Singhvi [this message]
2002-11-05 23:34 ` David S. Miller
-- strict thread matches above, loose matches on Subject: below --
2002-10-28 23:51 Nivedita Singhvi
2002-10-29 13:49 ` 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=3DC84747.67C80B24@us.ibm.com \
--to=niv@us.ibm.com \
--cc=davem@redhat.com \
--cc=linux-net@vger.kernel.org \
--cc=lksctp-developers@lists.sourceforge.net \
--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).