Browse code

sctp: stats: don't increment ASSOC_SHUTDOWN on COMM_LOST

Signed-off-by: Andrei Pelinescu-Onciul <andrei@iptel.org>

Libor Chocholaty authored on 23/12/2009 16:06:36
Showing 1 changed files
... ...
@@ -2218,9 +2218,12 @@ again:
2218 2218
 						dst_blacklist_su(BLST_ERR_SEND, PROTO_SCTP, su, 0);
2219 2219
 #endif /* USE_DST_BLACKLIST */
2220 2220
 			/* no break */
2221
+			goto comm_lost_cont;	/* do not increment counters for
2222
+									   SCTP_SHUTDOWN_COMP */
2221 2223
 		case SCTP_SHUTDOWN_COMP:
2222
-			atomic_dec(sctp_conn_no);
2223 2224
 			SCTP_STATS_ASSOC_SHUTDOWN();
2225
+comm_lost_cont:
2226
+			atomic_dec(sctp_conn_no);
2224 2227
 #ifdef SCTP_CONN_REUSE
2225 2228
 			/* connection down*/
2226 2229
 			if (likely(cfg_get(sctp, sctp_cfg, assoc_tracking)))