diff options
author | Neil Horman <nhorman@tuxdriver.com> | 2007-08-15 19:07:44 -0400 |
---|---|---|
committer | David S. Miller <davem@sunset.davemloft.net> | 2007-10-10 19:48:09 -0400 |
commit | 4d93df0abd50b9c9e2d4561439a1a1d21ec5e68f (patch) | |
tree | 47e5bde0c37ed7ce68032ffa9110f252533fc710 /net/sctp/ulpqueue.c | |
parent | 13c99b248f06e0b71d925f162d8e3b0084886a21 (diff) |
[SCTP]: Rewrite of sctp buffer management code
This patch introduces autotuning to the sctp buffer management code
similar to the TCP. The buffer space can be grown if the advertised
receive window still has room. This might happen if small message
sizes are used, which is common in telecom environmens.
New tunables are introduced that provide limits to buffer growth
and memory pressure is entered if to much buffer spaces is used.
Signed-off-by: Neil Horman <nhorman@tuxdriver.com>
Signed-off-by: Vlad Yasevich <vladislav.yasevich@hp.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/sctp/ulpqueue.c')
-rw-r--r-- | net/sctp/ulpqueue.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/net/sctp/ulpqueue.c b/net/sctp/ulpqueue.c index fa0ba2a5564..b9370956b18 100644 --- a/net/sctp/ulpqueue.c +++ b/net/sctp/ulpqueue.c | |||
@@ -1027,6 +1027,7 @@ void sctp_ulpq_renege(struct sctp_ulpq *ulpq, struct sctp_chunk *chunk, | |||
1027 | sctp_ulpq_partial_delivery(ulpq, chunk, gfp); | 1027 | sctp_ulpq_partial_delivery(ulpq, chunk, gfp); |
1028 | } | 1028 | } |
1029 | 1029 | ||
1030 | sk_stream_mem_reclaim(asoc->base.sk); | ||
1030 | return; | 1031 | return; |
1031 | } | 1032 | } |
1032 | 1033 | ||