Author: tuexen
Date: Sun Jul 17 08:31:21 2016
New Revision: 302942
URL: https://svnweb.freebsd.org/changeset/base/302942

Log:
  Add missing sctps_reasmusrmsgs counter.
  Joint work with rrs@.
  MFC after:    3 days

Modified:
  head/sys/netinet/sctp_indata.c

Modified: head/sys/netinet/sctp_indata.c
==============================================================================
--- head/sys/netinet/sctp_indata.c      Sat Jul 16 19:35:04 2016        
(r302941)
+++ head/sys/netinet/sctp_indata.c      Sun Jul 17 08:31:21 2016        
(r302942)
@@ -823,6 +823,7 @@ restart:
                                if (control->on_strm_q) {
                                        TAILQ_REMOVE(&strm->uno_inqueue, 
control, next_instrm);
                                        control->on_strm_q = 0;
+                                       
SCTP_STAT_INCR_COUNTER64(sctps_reasmusrmsgs);
                                }
                                if (control->on_read_q == 0) {
                                        sctp_add_to_readq(stcb->sctp_ep, stcb, 
control,
@@ -1028,6 +1029,7 @@ sctp_deliver_reasm_check(struct sctp_tcb
                                            control, control->on_strm_q);
                                }
 #endif
+                               SCTP_STAT_INCR_COUNTER64(sctps_reasmusrmsgs);
                                TAILQ_REMOVE(&strm->uno_inqueue, control, 
next_instrm);
                                control->on_strm_q = 0;
                        }
@@ -1082,6 +1084,7 @@ done_un:
                                            control, control->on_strm_q);
                                }
 #endif
+                               SCTP_STAT_INCR_COUNTER64(sctps_reasmusrmsgs);
                                TAILQ_REMOVE(&strm->inqueue, control, 
next_instrm);
                                control->on_strm_q = 0;
                        }
@@ -1127,6 +1130,7 @@ deliver_more:
                                                    control, 
control->on_strm_q);
                                        }
 #endif
+                                       
SCTP_STAT_INCR_COUNTER64(sctps_reasmusrmsgs);
                                        TAILQ_REMOVE(&strm->inqueue, control, 
next_instrm);
                                        control->on_strm_q = 0;
                                }
_______________________________________________
svn-src-head@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to