summaryrefslogtreecommitdiffstats
path: root/lib/libc
diff options
context:
space:
mode:
authordlg <dlg@openbsd.org>2015-03-18 12:23:15 +0000
committerdlg <dlg@openbsd.org>2015-03-18 12:23:15 +0000
commitff2a9cfc0b77a8eda60235d5e6a000d63761bebf (patch)
tree24d99f6a1d9d4b451d589fc6a3ee5a3a966dc4eb /lib/libc
parentuse device_lookup to find gcu0 rather than iterating over alldevs. (diff)
downloadwireguard-openbsd-ff2a9cfc0b77a8eda60235d5e6a000d63761bebf.tar.xz
wireguard-openbsd-ff2a9cfc0b77a8eda60235d5e6a000d63761bebf.zip
remove the congestion handling from struct ifqueue.
its only used for the ip and ip6 network stack input queues, so it seems unfair that every instance of ifqueue has to carry a pointer around for this specific use case. this moves the congestion marker to a kernel global. if we detect that we're congested, we assume the whole system is busy and punish all input queues. marking a system as congested is done by setting the global to the current value of ticks. as the system moves away from that value, it moves away from being congested until the comparison fails. written at s2k15 ok henning@ beck@ bluhm@ claudio@
Diffstat (limited to 'lib/libc')
0 files changed, 0 insertions, 0 deletions