~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

TOMOYO Linux Cross Reference
Linux/include/target/iscsi/iscsi_target_stat.h

Version: ~ [ linux-6.12-rc7 ] ~ [ linux-6.11.7 ] ~ [ linux-6.10.14 ] ~ [ linux-6.9.12 ] ~ [ linux-6.8.12 ] ~ [ linux-6.7.12 ] ~ [ linux-6.6.60 ] ~ [ linux-6.5.13 ] ~ [ linux-6.4.16 ] ~ [ linux-6.3.13 ] ~ [ linux-6.2.16 ] ~ [ linux-6.1.116 ] ~ [ linux-6.0.19 ] ~ [ linux-5.19.17 ] ~ [ linux-5.18.19 ] ~ [ linux-5.17.15 ] ~ [ linux-5.16.20 ] ~ [ linux-5.15.171 ] ~ [ linux-5.14.21 ] ~ [ linux-5.13.19 ] ~ [ linux-5.12.19 ] ~ [ linux-5.11.22 ] ~ [ linux-5.10.229 ] ~ [ linux-5.9.16 ] ~ [ linux-5.8.18 ] ~ [ linux-5.7.19 ] ~ [ linux-5.6.19 ] ~ [ linux-5.5.19 ] ~ [ linux-5.4.285 ] ~ [ linux-5.3.18 ] ~ [ linux-5.2.21 ] ~ [ linux-5.1.21 ] ~ [ linux-5.0.21 ] ~ [ linux-4.20.17 ] ~ [ linux-4.19.323 ] ~ [ linux-4.18.20 ] ~ [ linux-4.17.19 ] ~ [ linux-4.16.18 ] ~ [ linux-4.15.18 ] ~ [ linux-4.14.336 ] ~ [ linux-4.13.16 ] ~ [ linux-4.12.14 ] ~ [ linux-4.11.12 ] ~ [ linux-4.10.17 ] ~ [ linux-4.9.337 ] ~ [ linux-4.4.302 ] ~ [ linux-3.10.108 ] ~ [ linux-2.6.32.71 ] ~ [ linux-2.6.0 ] ~ [ linux-2.4.37.11 ] ~ [ unix-v6-master ] ~ [ ccs-tools-1.8.12 ] ~ [ policy-sample ] ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

  1 /* SPDX-License-Identifier: GPL-2.0 */
  2 #ifndef ISCSI_TARGET_STAT_H
  3 #define ISCSI_TARGET_STAT_H
  4 
  5 #include <linux/types.h>
  6 #include <linux/spinlock.h>
  7 #include <linux/socket.h>
  8 
  9 /*
 10  * For struct iscsi_tiqn->tiqn_wwn default groups
 11  */
 12 extern const struct config_item_type iscsi_stat_instance_cit;
 13 extern const struct config_item_type iscsi_stat_sess_err_cit;
 14 extern const struct config_item_type iscsi_stat_tgt_attr_cit;
 15 extern const struct config_item_type iscsi_stat_login_cit;
 16 extern const struct config_item_type iscsi_stat_logout_cit;
 17 
 18 /*
 19  * For struct iscsi_session->se_sess default groups
 20  */
 21 extern const struct config_item_type iscsi_stat_sess_cit;
 22 
 23 /* iSCSI session error types */
 24 #define ISCSI_SESS_ERR_UNKNOWN          0
 25 #define ISCSI_SESS_ERR_DIGEST           1
 26 #define ISCSI_SESS_ERR_CXN_TIMEOUT      2
 27 #define ISCSI_SESS_ERR_PDU_FORMAT       3
 28 
 29 /* iSCSI session error stats */
 30 struct iscsi_sess_err_stats {
 31         spinlock_t      lock;
 32         u32             digest_errors;
 33         u32             cxn_timeout_errors;
 34         u32             pdu_format_errors;
 35         u32             last_sess_failure_type;
 36         char            last_sess_fail_rem_name[ISCSI_IQN_LEN];
 37 } ____cacheline_aligned;
 38 
 39 /* iSCSI login failure types (sub oids) */
 40 #define ISCSI_LOGIN_FAIL_OTHER          2
 41 #define ISCSI_LOGIN_FAIL_REDIRECT       3
 42 #define ISCSI_LOGIN_FAIL_AUTHORIZE      4
 43 #define ISCSI_LOGIN_FAIL_AUTHENTICATE   5
 44 #define ISCSI_LOGIN_FAIL_NEGOTIATE      6
 45 
 46 /* iSCSI login stats */
 47 struct iscsi_login_stats {
 48         spinlock_t      lock;
 49         u32             accepts;
 50         u32             other_fails;
 51         u32             redirects;
 52         u32             authorize_fails;
 53         u32             authenticate_fails;
 54         u32             negotiate_fails;        /* used for notifications */
 55         u64             last_fail_time;         /* time stamp (jiffies) */
 56         u32             last_fail_type;
 57         int             last_intr_fail_ip_family;
 58         struct sockaddr_storage last_intr_fail_sockaddr;
 59         char            last_intr_fail_name[ISCSI_IQN_LEN];
 60 } ____cacheline_aligned;
 61 
 62 /* iSCSI logout stats */
 63 struct iscsi_logout_stats {
 64         spinlock_t      lock;
 65         u32             normal_logouts;
 66         u32             abnormal_logouts;
 67 } ____cacheline_aligned;
 68 
 69 #endif   /*** ISCSI_TARGET_STAT_H ***/
 70 

~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

kernel.org | git.kernel.org | LWN.net | Project Home | SVN repository | Mail admin

Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.

sflogo.php