#ifndef ISCSI_TARGET_STAT_H #define ISCSI_TARGET_STAT_H #include <linux/types.h> #include <linux/spinlock.h> #include <linux/socket.h> /* * For struct iscsi_tiqn->tiqn_wwn default groups */ extern struct config_item_type iscsi_stat_instance_cit; extern struct config_item_type iscsi_stat_sess_err_cit; extern struct config_item_type iscsi_stat_tgt_attr_cit; extern struct config_item_type iscsi_stat_login_cit; extern struct config_item_type iscsi_stat_logout_cit; /* * For struct iscsi_session->se_sess default groups */ extern struct config_item_type iscsi_stat_sess_cit; /* iSCSI session error types */ #define ISCSI_SESS_ERR_UNKNOWN 0 #define ISCSI_SESS_ERR_DIGEST 1 #define ISCSI_SESS_ERR_CXN_TIMEOUT 2 #define ISCSI_SESS_ERR_PDU_FORMAT 3 /* iSCSI session error stats */ struct iscsi_sess_err_stats { spinlock_t lock; u32 digest_errors; u32 cxn_timeout_errors; u32 pdu_format_errors; u32 last_sess_failure_type; char last_sess_fail_rem_name[224]; } ____cacheline_aligned; /* iSCSI login failure types (sub oids) */ #define ISCSI_LOGIN_FAIL_OTHER 2 #define ISCSI_LOGIN_FAIL_REDIRECT 3 #define ISCSI_LOGIN_FAIL_AUTHORIZE 4 #define ISCSI_LOGIN_FAIL_AUTHENTICATE 5 #define ISCSI_LOGIN_FAIL_NEGOTIATE 6 /* iSCSI login stats */ struct iscsi_login_stats { spinlock_t lock; u32 accepts; u32 other_fails; u32 redirects; u32 authorize_fails; u32 authenticate_fails; u32 negotiate_fails; /* used for notifications */ u64 last_fail_time; /* time stamp (jiffies) */ u32 last_fail_type; int last_intr_fail_ip_family; struct sockaddr_storage last_intr_fail_sockaddr; char last_intr_fail_name[224]; } ____cacheline_aligned; /* iSCSI logout stats */ struct iscsi_logout_stats { spinlock_t lock; u32 normal_logouts; u32 abnormal_logouts; } ____cacheline_aligned; #endif /*** ISCSI_TARGET_STAT_H ***/ ree/net/ceph/auth_none.c?id=04d8a0a5f3b6887543850d991a5e37c4ec90e250'>tree</a><a href='/cgit.cgi/linux/net-next.git/commit/net/ceph/auth_none.c?id=04d8a0a5f3b6887543850d991a5e37c4ec90e250'>commit</a><a class='active' href='/cgit.cgi/linux/net-next.git/diff/net/ceph/auth_none.c?id=04d8a0a5f3b6887543850d991a5e37c4ec90e250&id2=ff4cf0e5ce952488074aa7f47734af1794f55fbc'>diff</a></td><td class='form'><form class='right' method='get' action='/cgit.cgi/linux/net-next.git/log/net/ceph/auth_none.c'> <input type='hidden' name='id' value='04d8a0a5f3b6887543850d991a5e37c4ec90e250'/><input type='hidden' name='id2' value='ff4cf0e5ce952488074aa7f47734af1794f55fbc'/><select name='qt'> <option value='grep'>log msg</option> <option value='author'>author</option> <option value='committer'>committer</option> <option value='range'>range</option> </select> <input class='txt' type='search' size='10' name='q' value=''/> <input type='submit' value='search'/> </form> </td></tr></table> <div class='path'>path: <a href='/cgit.cgi/linux/net-next.git/diff/?id=04d8a0a5f3b6887543850d991a5e37c4ec90e250&id2=ff4cf0e5ce952488074aa7f47734af1794f55fbc'>root</a>/<a href='/cgit.cgi/linux/net-next.git/diff/net?id=04d8a0a5f3b6887543850d991a5e37c4ec90e250&id2=ff4cf0e5ce952488074aa7f47734af1794f55fbc'>net</a>/<a href='/cgit.cgi/linux/net-next.git/diff/net/ceph?id=04d8a0a5f3b6887543850d991a5e37c4ec90e250&id2=ff4cf0e5ce952488074aa7f47734af1794f55fbc'>ceph</a>/<a href='/cgit.cgi/linux/net-next.git/diff/net/ceph/auth_none.c?id=04d8a0a5f3b6887543850d991a5e37c4ec90e250&id2=ff4cf0e5ce952488074aa7f47734af1794f55fbc'>auth_none.c</a></div><div class='content'><div class='cgit-panel'><b>diff options</b><form method='get'><input type='hidden' name='id' value='04d8a0a5f3b6887543850d991a5e37c4ec90e250'/><input type='hidden' name='id2' value='ff4cf0e5ce952488074aa7f47734af1794f55fbc'/><table><tr><td colspan='2'/></tr><tr><td class='label'>context:</td><td class='ctrl'><select name='context' onchange='this.form.submit();'><option value='1'>1</option><option value='2'>2</option><option value='3' selected='selected'>3</option><option value='4'>4</option><option value='5'>5</option><option value='6'>6</option><option value='7'>7</option><option value='8'>8</option><option value='9'>9</option><option value='10'>10</option><option value='15'>15</option><option value='20'>20</option><option value='25'>25</option><option value='30'>30</option><option value='35'>35</option><option value='40'>40</option></select></td></tr><tr><td class='label'>space:</td><td class='ctrl'><select name='ignorews' onchange='this.form.submit();'><option value='0' selected='selected'>include</option><option value='1'>ignore</option></select></td></tr><tr><td class='label'>mode:</td><td class='ctrl'><select name='dt' onchange='this.form.submit();'><option value='0' selected='selected'>unified</option><option value='1'>ssdiff</option><option value='2'>stat only</option></select></td></tr><tr><td/><td class='ctrl'><noscript><input type='submit' value='reload'/></noscript></td></tr></table></form></div><div class='diffstat-header'><a href='/cgit.cgi/linux/net-next.git/diff/?id=04d8a0a5f3b6887543850d991a5e37c4ec90e250&id2=ff4cf0e5ce952488074aa7f47734af1794f55fbc'>Diffstat</a> (limited to 'net/ceph/auth_none.c')</div><table summary='diffstat' class='diffstat'>