diff options
author | Steve Wise <swise@opengridcomputing.com> | 2008-07-15 08:48:48 +0200 |
---|---|---|
committer | Roland Dreier <rolandd@cisco.com> | 2008-07-15 08:48:48 +0200 |
commit | 7f624d023b5fb150831e02c1e4c0f2619ade72c2 (patch) | |
tree | 9618a7eaa601855c3ab7763a3c31ee2fc16364ee /include/rdma/ib_user_mad.h | |
parent | IPoIB/cm: Fix racy use of receive WR/SGL in ipoib_cm_post_receive_nonsrq() (diff) | |
download | linux-7f624d023b5fb150831e02c1e4c0f2619ade72c2.tar.xz linux-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 'include/rdma/ib_user_mad.h')
0 files changed, 0 insertions, 0 deletions