aboutsummaryrefslogtreecommitdiffstats
path: root/fs/coda
diff options
context:
space:
mode:
authorSteve Wise <swise@opengridcomputing.com>2008-07-14 23:48:48 -0700
committerRoland Dreier <rolandd@cisco.com>2008-07-14 23:48:48 -0700
commit7f624d023b5fb150831e02c1e4c0f2619ade72c2 (patch)
tree9618a7eaa601855c3ab7763a3c31ee2fc16364ee /fs/coda
parentIPoIB/cm: Fix racy use of receive WR/SGL in ipoib_cm_post_receive_nonsrq() (diff)
downloadlinux-dev-7f624d023b5fb150831e02c1e4c0f2619ade72c2.tar.xz
linux-dev-7f624d023b5fb150831e02c1e4c0f2619ade72c2.zip
RDMA/core: Add iWARP protocol statistics attributes in sysfs
This patch adds a sysfs attribute group called "proto_stats" under /sys/class/infiniband/$device/ and populates this group with protocol statistics if they exist for a given device. Currently, only iWARP stats are defined, but the code is designed to allow InfiniBand protocol stats if they become available. These stats are per-device and more importantly -not- per port. Details: - Add union rdma_protocol_stats in ib_verbs.h. This union allows defining transport-specific stats. Currently only iwarp stats are defined. - Add struct iw_protocol_stats to define the current set of iwarp protocol stats. - Add new ib_device method called get_proto_stats() to return protocol statistics. - Add logic in core/sysfs.c to create iwarp protocol stats attributes if the device is an RNIC and has a get_proto_stats() method. Signed-off-by: Steve Wise <swise@opengridcomputing.com> Signed-off-by: Roland Dreier <rolandd@cisco.com>
Diffstat (limited to 'fs/coda')
0 files changed, 0 insertions, 0 deletions