Print this page
NEX-6832 fcsm module's debug level default should be 0 (cstyle fix)
Reviewed by: Rob Gittins <rob.gittins@nexenta.com>
NEX-3622 COMSTAR should have per remote port kstats for I/O and latency
Reviewed by: Rob Gittins <rob.gittins@nexenta.com>
Reviewed by: Yuri Pankov <yuri.pankov@nexenta.com>
@@ -27,10 +27,12 @@
#ifdef __cplusplus
extern "C" {
#endif
+#include <sys/portif.h>
+
typedef struct stmf_kstat_itl_info {
kstat_named_t i_rport_name;
kstat_named_t i_rport_alias;
kstat_named_t i_lport_name;
kstat_named_t i_lport_alias;
@@ -56,10 +58,25 @@
kstat_named_t i_tgt_name;
kstat_named_t i_tgt_alias;
kstat_named_t i_protocol;
} stmf_kstat_tgt_info_t;
+#define STMF_RPORT_INFO_LIMIT 8
+
+typedef struct stmf_kstat_rport_info {
+ kstat_named_t i_rport_name;
+ kstat_named_t i_protocol;
+ kstat_named_t i_rport_uinfo[STMF_RPORT_INFO_LIMIT];
+} stmf_kstat_rport_info_t;
+
+typedef struct stmf_kstat_rport_estat {
+ kstat_named_t i_rport_read_latency;
+ kstat_named_t i_rport_write_latency;
+ kstat_named_t i_nread_tasks;
+ kstat_named_t i_nwrite_tasks;
+} stmf_kstat_rport_estat_t;
+
#ifdef __cplusplus
}
#endif
#endif /* _STMF_STATS_H */