netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [RFC] UDP SndbufErrors interface and the /proc/net/udp interface.
@ 2008-07-01  6:47 Ian Brown
  2008-07-01 10:18 ` Andi Kleen
  0 siblings, 1 reply; 3+ messages in thread
From: Ian Brown @ 2008-07-01  6:47 UTC (permalink / raw)
  To: netdev

Hello,

You can see UDP RcvbufErrors via /proc/net/snmp interface.
These are UDP RcvbufErrors per system.

A recent patch (from two weeks ago) added the ability to view
RcvbufErrors also per
port, via /proc/net/udp. This was done by incrementing sk_drops of the
sock struct when RcvbufErrors is incremented; see , in udp.c (both in
ipv4 and in ipv6)
the call to atomic_inc(&sk->sk_drops).

see:
http://kerneltrap.org/mailarchive/linux-netdev/2008/6/17/2153994

You can see UDP SndbufErrors also via /proc/net/snmp interface.
These are UDP SndbufErrors per system.
I was wondering if it is worthwhile to enable viewing SndbufErrors per
port, via /proc/net/udp interface. It could be done, for example, by adding
a member to the sock structure, for example, sk_send_err, (or
sk_udp_send_drop) incrementing it when SndbufErrors
is incremented, and adding code enable viewing it via /proc/net/udp interface.

I wonder: would such a patch (form me or others) in needed ? Or will
it be rejected because this idea is not good ?
In case this idea is not good, I wonder what is the reason for it.

Regards,
Ian

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

end of thread, other threads:[~2008-07-01 13:50 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-07-01  6:47 [RFC] UDP SndbufErrors interface and the /proc/net/udp interface Ian Brown
2008-07-01 10:18 ` Andi Kleen
2008-07-01 13:50   ` Ian Brown

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).