diff options
author | rrs <rrs@FreeBSD.org> | 2007-04-15 11:58:26 +0000 |
---|---|---|
committer | rrs <rrs@FreeBSD.org> | 2007-04-15 11:58:26 +0000 |
commit | 0eed90f74a4d72aafe54a3effbef2ce8080f753b (patch) | |
tree | 66b3a65021698d30bae86cfd4452df34a0c14ca2 /sys/netinet/sctp_var.h | |
parent | 31175191f1c5ebf0c19db84ff5d57aa96207de48 (diff) | |
download | FreeBSD-src-0eed90f74a4d72aafe54a3effbef2ce8080f753b.zip FreeBSD-src-0eed90f74a4d72aafe54a3effbef2ce8080f753b.tar.gz |
- Add more comments to sctps_stats struture in sctp_uio.h
- Fix bug that prevented EEOR mode from working
and simplified the can_we_split code in the process.
- Reduce lock contention for the tcb_send_lock. I did
this especially for EEOR mode, still need to look at
why I need a lock when removing from the tailq and the
->next is NOT null. A lock fixes it but it implies a
bug yet exists.
- Activated Andre's proposed changes to better use the mbuf
infrastructure.
- Fixed places that were not using the aloc macro's to take
advantage of the per assoc cache.
- Adds ifdef fix so any logging will enable stat_logging to
get the right data structures in place (suggested by Max Laier).
Diffstat (limited to 'sys/netinet/sctp_var.h')
-rw-r--r-- | sys/netinet/sctp_var.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/netinet/sctp_var.h b/sys/netinet/sctp_var.h index ee322fa..7cccacd 100644 --- a/sys/netinet/sctp_var.h +++ b/sys/netinet/sctp_var.h @@ -98,6 +98,7 @@ extern struct pr_usrreqs sctp_usrreqs; (_strmoq) = TAILQ_FIRST(&(_stcb)->asoc.free_strmoq); \ TAILQ_REMOVE(&(_stcb)->asoc.free_strmoq, (_strmoq), next); \ atomic_subtract_int(&sctppcbinfo.ipi_free_strmoq, 1); \ + SCTP_STAT_INCR(sctps_cached_strmoq); \ (_stcb)->asoc.free_strmoq_cnt--; \ } \ } @@ -125,6 +126,7 @@ extern struct pr_usrreqs sctp_usrreqs; (_chk) = TAILQ_FIRST(&(_stcb)->asoc.free_chunks); \ TAILQ_REMOVE(&(_stcb)->asoc.free_chunks, (_chk), sctp_next); \ atomic_subtract_int(&sctppcbinfo.ipi_free_chunks, 1); \ + SCTP_STAT_INCR(sctps_cached_chk); \ (_stcb)->asoc.free_chunk_cnt--; \ } \ } |