diff options
author | Steve Wise <swise@opengridcomputing.com> | 2008-07-14 23:48:48 -0700 |
---|---|---|
committer | Roland Dreier <rolandd@cisco.com> | 2008-07-14 23:48:48 -0700 |
commit | 7f624d023b5fb150831e02c1e4c0f2619ade72c2 (patch) | |
tree | 9618a7eaa601855c3ab7763a3c31ee2fc16364ee /drivers/net/cxgb3/cxgb3_offload.c | |
parent | a7d834c4bc6be73e8f83eaa5072fac3c5549f7f2 (diff) | |
download | blackbird-op-linux-7f624d023b5fb150831e02c1e4c0f2619ade72c2.tar.gz blackbird-op-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 'drivers/net/cxgb3/cxgb3_offload.c')
0 files changed, 0 insertions, 0 deletions