History log of /netbsd-src/sys/netinet/tcp_congctl.c (Results 1 – 25 of 29)
Revision Date Author Comments
# e4ebea9e 14-May-2024 andvar <andvar@NetBSD.org>

fix recently committed typos by msaitoh in few more places, as well as few more.
mainly s/contigous/contiguous/ and s/miliseconds/milliseconds/ in comments.


# 40be87ae 31-Jul-2021 andvar <andvar@NetBSD.org>

s/threshhold/threshold


# 53950d86 09-Oct-2019 msaitoh <msaitoh@NetBSD.org>

All of snd_wnd, snd_cwnd and snd_ssthresh in stuct tcpcb are u_long,
so use u_long and ulmin() instead of u_int and uimin(). Found by lgtm bot.

XXX TCP's sequence number is uint32_t, so it might be

All of snd_wnd, snd_cwnd and snd_ssthresh in stuct tcpcb are u_long,
so use u_long and ulmin() instead of u_int and uimin(). Found by lgtm bot.

XXX TCP's sequence number is uint32_t, so it might be good to change some
entries in struct tcpcb to uint32_t instead of u_long. FreeBSD did it.

show more ...


# d1579b2d 03-Sep-2018 riastradh <riastradh@NetBSD.org>

Rename min/max -> uimin/uimax for better honesty.

These functions are defined on unsigned int. The generic name
min/max should not silently truncate to 32 bits on 64-bit systems.
This is purely a n

Rename min/max -> uimin/uimax for better honesty.

These functions are defined on unsigned int. The generic name
min/max should not silently truncate to 32 bits on 64-bit systems.
This is purely a name change -- no functional change intended.

HOWEVER! Some subsystems have

#define min(a, b) ((a) < (b) ? (a) : (b))
#define max(a, b) ((a) > (b) ? (a) : (b))

even though our standard name for that is MIN/MAX. Although these
may invite multiple evaluation bugs, these do _not_ cause integer
truncation.

To avoid `fixing' these cases, I first changed the name in libkern,
and then compile-tested every file where min/max occurred in order to
confirm that it failed -- and thus confirm that nothing shadowed
min/max -- before changing it.

I have left a handful of bootloaders that are too annoying to
compile-test, and some dead code:

cobalt ews4800mips hp300 hppa ia64 luna68k vax
acorn32/if_ie.c (not included in any kernels)
macppc/if_gm.c (superseded by gem(4))

It should be easy to fix the fallout once identified -- this way of
doing things fails safe, and the goal here, after all, is to _avoid_
silent integer truncations, not introduce them.

Maybe one day we can reintroduce min/max as type-generic things that
never silently truncate. But we should avoid doing that for a while,
so that existing code has a chance to be detected by the compiler for
conversion to uimin/uimax without changing the semantics until we can
properly audit it all. (Who knows, maybe in some cases integer
truncation is actually intended!)

show more ...


# 5d73803e 03-May-2018 maxv <maxv@NetBSD.org>

Remove now unused tcpip.h includes. Some were already unused before.


# 6ad323e9 29-Mar-2018 maxv <maxv@NetBSD.org>

Remove #ifdef INET. Same as tcp_input.c. Makes the code easier to
understand.

Also make tcp6_mtudisc() static in tcp_subr.c.


# 4c7fdffb 02-Jan-2017 skrll <skrll@NetBSD.org>

Restore behaviour to pre- tcp_congctl.c:1.18 for SACK. Further analysis
of the change is required.

OK kefren@

PR/51753 tcp SACK causes SSH disconnect


# 44375ea9 13-Dec-2016 ozaki-r <ozaki-r@NetBSD.org>

Remove unnecessary inclusions of nd6.h


# a79dfa5d 26-Apr-2016 ozaki-r <ozaki-r@NetBSD.org>

Sweep unnecessary route.h inclusions


# 1c4a50f1 24-Aug-2015 pooka <pooka@NetBSD.org>

sprinkle _KERNEL_OPT


# be55f323 18-Nov-2013 kefren <kefren@NetBSD.org>

Cubic changes:
* correct W(t) calculation
* check wmax limits
* change W_max in slow and fast retransmit
* correct rtt approximation
Reno:
* move comment I forgot behind after fast_retransmit()

Cubic changes:
* correct W(t) calculation
* check wmax limits
* change W_max in slow and fast retransmit
* correct rtt approximation
Reno:
* move comment I forgot behind after fast_retransmit() split

show more ...


# 4d4f2b7d 12-Nov-2013 kefren <kefren@NetBSD.org>

* implement TCP CUBIC congestion control algorithm
* move tcp_sack_newack bits inside reno and newreno_fast_retransmit_newack
* notify ECN peer about cwnd shrink in [new]reno_slow_retransmit

Based o

* implement TCP CUBIC congestion control algorithm
* move tcp_sack_newack bits inside reno and newreno_fast_retransmit_newack
* notify ECN peer about cwnd shrink in [new]reno_slow_retransmit

Based on the patch proposed on tech-net@ on Nov 7 with minor improvments:
* adapt wmax for no-fast convergence case
* correct cbrt calculation for big window sizes (>750KB)

show more ...


# 7c79fd6c 25-Oct-2013 martin <martin@NetBSD.org>

Mark a diagnostic-only variable


# 18a0ef4a 08-Apr-2011 yamt <yamt@NetBSD.org>

simplify code a little. no functional changes.


# ce099b40 28-Apr-2008 martin <martin@NetBSD.org>

Remove clause 3 and 4 from TNF licenses


# a34217b8 29-Feb-2008 matt <matt@NetBSD.org>

Rework tcp congctl selection code so that the congctl entries can be const.
Don't access tcp_congctl stuff outside of tcp_congctl.c, use routines to
update t_congctl. This code is slightly now more

Rework tcp congctl selection code so that the congctl entries can be const.
Don't access tcp_congctl stuff outside of tcp_congctl.c, use routines to
update t_congctl. This code is slightly now more complicated.

show more ...


# 48e23b4a 11-Jul-2007 xtraeme <xtraeme@NetBSD.org>

Replace a simple lock with a mutex and make it static.


# 168cd830 16-Nov-2006 christos <christos@NetBSD.org>

__unused removal on arguments; approved by core.


# 7253aad9 21-Oct-2006 yamt <yamt@NetBSD.org>

constify.


# c549acef 19-Oct-2006 yamt <yamt@NetBSD.org>

tcp_reno_newack: remove an __unused because it's now used.


# df8e5bdd 19-Oct-2006 yamt <yamt@NetBSD.org>

tcp_reno_newack: regardless of sysctl setting, use L=1*SMSS when
we are doing retransmission.


# 81463c93 19-Oct-2006 yamt <yamt@NetBSD.org>

implement RFC3465 appropriate byte counting.
from Kentaro A. Kurahone, with minor adjustments by me.
the ack prediction part of the original patch was omitted because
it's a separate change. reviewe

implement RFC3465 appropriate byte counting.
from Kentaro A. Kurahone, with minor adjustments by me.
the ack prediction part of the original patch was omitted because
it's a separate change. reviewed by Rui Paulo.

show more ...


# 1c1f230e 15-Oct-2006 rpaulo <rpaulo@NetBSD.org>

Move comments to proper places.


# a70594d3 15-Oct-2006 rpaulo <rpaulo@NetBSD.org>

Add a new tcp_congctl(9) structure member for congestion experienced callback.
Needed by HSTCP.


# 4d595fd7 12-Oct-2006 christos <christos@NetBSD.org>

- sprinkle __unused on function decls.
- fix a couple of unused bugs
- no more -Wno-unused for i386


12