[ofa-general] Re: [PATCH] rdma_cm: Add proc entry to monitor rdma_cm connections

Jason Gunthorpe jgunthorpe at obsidianresearch.com
Tue Mar 31 11:58:49 PDT 2009


On Tue, Mar 31, 2009 at 10:57:06AM -0700, Roland Dreier wrote:
>  > AFAIK, proc/net is the only source for most of the information under
>  > proc/net, it can't be legacy if there is no alternative :) These days
>  > it is actually proc/<pid>/net/XXX due the namespace stuff, so it kinda
>  > is process related.
> 
> Well at least /proc/net/tcp has been deprecated for a *long* time (5+
> years?) in favor of tcp_diag -- netstat vs. ss is basically the same
> issue as ifconfig vs. ip.

Well, squeezing things through the INET_DIAG netlink interface would
be nice, but several other modern things have not bothered - like sctp,
or even netlink itself, they use proc/net exclusively. (not that I
think that is ideal, but..)

Also keep in mind, patching things like lsof and netstat to use
proc/net files is alot simpler than trying to work netlink into those
programs for the first time..

Jason



More information about the general mailing list