[sr-dev] git:sr_3.0: sctp: stats: don't increment ASSOC_SHUTDOWN on COMM_LOST

Andrei Pelinescu-Onciul andrei at iptel.org
Wed Dec 23 17:07:27 CET 2009


Module: sip-router
Branch: sr_3.0
Commit: 642ff762480e3c16ef417b106ed5a2b64d126d88
URL:    http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=642ff762480e3c16ef417b106ed5a2b64d126d88

Author: Libor Chocholaty <libor at iptel.org>
Committer: Andrei Pelinescu-Onciul <andrei at iptel.org>
Date:   Wed Dec 23 17:06:36 2009 +0100

sctp: stats: don't increment ASSOC_SHUTDOWN on COMM_LOST

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

---

 sctp_server.c |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diff --git a/sctp_server.c b/sctp_server.c
index c966ad3..9ff43ba 100644
--- a/sctp_server.c
+++ b/sctp_server.c
@@ -2218,9 +2218,12 @@ again:
 						dst_blacklist_su(BLST_ERR_SEND, PROTO_SCTP, su, 0);
 #endif /* USE_DST_BLACKLIST */
 			/* no break */
+			goto comm_lost_cont;	/* do not increment counters for
+									   SCTP_SHUTDOWN_COMP */
 		case SCTP_SHUTDOWN_COMP:
-			atomic_dec(sctp_conn_no);
 			SCTP_STATS_ASSOC_SHUTDOWN();
+comm_lost_cont:
+			atomic_dec(sctp_conn_no);
 #ifdef SCTP_CONN_REUSE
 			/* connection down*/
 			if (likely(cfg_get(sctp, sctp_cfg, assoc_tracking)))




More information about the sr-dev mailing list