SCSI: Add FC transport host statistics
From: James.Smart@Emulex.Com
This patch updates the fc_transport with statistics for local FC ports
(e.g. Hosts). The statistics are defined per HBAAPI v2.0 definitions.
Caveats:
------------
- The information below is supplied by a simple test driver
that does not
talk to real hardware, but fully acts as a LLDD that supports the
fc transport.
This patch results in the following in /sys/class:
-----------------------------------------------------
[jsmart@elxware class]$ cd /sys/class
[jsmart@elxware class]$ ls
fc_host graphics misc pci_bus scsi_host usb_host
fc_transport input net scsi_device tty vc
firmware mem netlink scsi_generic usb
[jsmart@elxware class]$ cd fc_host
[jsmart@elxware fc_host]$ ls
host4
[jsmart@elxware fc_host]$ cd host4
[jsmart@elxware host4]$ ls
device host_link_down_tmo statistics
[jsmart@elxware host4]$ ls -ld *
lrwxrwxrwx 1 root root 0 Oct 13 17:16 device ->
../../../devices/platform/host4
-rw-r--r-- 1 root root 4096 Oct 13 17:16 host_link_down_tmo
drwxr-xr-x 2 root root 0 Oct 13 17:16 statistics
[jsmart@elxware host4]$ cd statistics
dumped_frames invalid_crc_count
prim_seq_protocol_err_count
error_frames invalid_tx_word_count reset_statistics
fcp_control_requests link_failure_count rx_frames
fcp_input_megabytes lip_count rx_words
fcp_input_requests loss_of_signal_count seconds_since_last_reset
fcp_output_megabytes loss_of_sync_count tx_frames
fcp_output_requests nos_count tx_words
Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
Showing
Please register or sign in to comment