Browse code

sctp: SCTP_STATS_ASSOC_SHUTDOWN

Statistics placeholder for counting shutdowns.

Andrei Pelinescu-Onciul authored on 23/12/2009 15:58:45
Showing 2 changed files
... ...
@@ -2220,6 +2220,7 @@ again:
2220 2220
 			/* no break */
2221 2221
 		case SCTP_SHUTDOWN_COMP:
2222 2222
 			atomic_dec(sctp_conn_no);
2223
+			SCTP_STATS_ASSOC_SHUTDOWN();
2223 2224
 #ifdef SCTP_CONN_REUSE
2224 2225
 			/* connection down*/
2225 2226
 			if (likely(cfg_get(sctp, sctp_cfg, assoc_tracking)))
... ...
@@ -37,6 +37,7 @@
37 37
 #define SCTP_STATS_CONNECT_FAILED()
38 38
 #define SCTP_STATS_LOCAL_REJECT()
39 39
 #define SCTP_STATS_REMOTE_SHUTDOWN()
40
+#define SCTP_STATS_ASSOC_SHUTDOWN()
40 41
 #define SCTP_STATS_COMM_LOST()
41 42
 #define SCTP_STATS_SENDQ_FULL()
42 43
 #define SCTP_STATS_SEND_FAILED()
... ...
@@ -69,6 +70,12 @@
69 69
 #define SCTP_STATS_REMOTE_SHUTDOWN()
70 70
 
71 71
 
72
+/** called each time a connection is shutdown.
73
+  * sctp notification: SCTP_SHUTDOWN_COMP
74
+  */
75
+#define SCTP_STATS_ASSOC_SHUTDOWN()
76
+
77
+
72 78
 /** called each time an established connection is closed due to some error.
73 79
   * sctp notification: SCTP_COMM_LOST
74 80
   */