[ofa-general] Re: [PATCH] rdma_cm: Add proc entry to monitor rdma_cm connections
Steve Wise
swise at opengridcomputing.com
Tue Mar 31 12:12:10 PDT 2009
> What about putting this stuff in /sys/class/infiniband/rdma_cm/*
>
>
> You could populate a file or directory for each cm_id and reading the
> file (or files under the directory) could display the various useful
> state.
>
>
Here's an example where each cm_id is a directory tree under
/sys/class/infiniband/rdma_cm/*
Two allocated cm_ids might take dir entries "0" and "1" (for lack of a
better token):
/sys/class/infiniband/rdma_cm/0/
/sys/class/infiniband/rdma_cm/1/
Then under these are files:
qp_num
src_addr
src_port
dst_addr
dst_port
port_space
device_name
id_state
ib/* (for ib-specific stuff)
iw/* (for iw-specific stuff)
Steve.
More information about the general
mailing list