浏览代码

sctp: stats: don't increment ASSOC_SHUTDOWN on COMM_LOST

Signed-off-by: Andrei Pelinescu-Onciul <[email protected]>
Libor Chocholaty 15 年之前
父节点
当前提交
642ff76248
共有 1 个文件被更改,包括 4 次插入1 次删除
  1. 4 1
      sctp_server.c

+ 4 - 1
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)))