OpenBSD cvs log

created 2019-07-09T07:37:32Z
begin 2019-07-03T00:00:00Z
end 2019-07-04T00:00:00Z
path src/sys
commits 9

date 2019-07-03T00:08:18Z
author ians
files src/sys/dev/ic/wdc.c log diff annotate
message Don't check if unsigned value is less than zero

ok kn@

date 2019-07-03T10:08:10Z
author dlg
files src/sys/sys/socket.h log diff annotate
message prepare sysctl net mib to allow runtime tuning of rx q pressure thresholds

this renames the PF_LINK bit of the mib from "link_layer" to "link".
then it makes it a node that could be used for generic link layer
bits. the first of these is an "ifrxq" node where the "pressure_return"
and "pressure_drop" things go.

ok visa@ deraadt@

date 2019-07-03T10:19:45Z
author dlg
files src/sys/kern/uipc_domain.c log diff annotate
src/sys/net/ifq.c log diff annotate
src/sys/sys/sysctl.h log diff annotate
message add the kernel side of net.link.ifrxq.pressure_return and pressure_drop

these values are used as the backpressure thresholds in the interface
rx q processing code. theyre being exposed as tunables to userland
while we are figuring out what the best values for them are.

ok visa@ deraadt@

date 2019-07-03T10:34:59Z
author dlg
files src/sys/dev/pci/if_myx.c log diff annotate
message use ifiq_input return values to apply backpressure to rings.

date 2019-07-03T14:32:02Z
author visa
files src/sys/kern/kern_descrip.c log diff annotate
src/sys/kern/kern_event.c log diff annotate
message Lock the kernel when removing file descriptors from the descriptor
table. This should prevent a race with kevent when unlocked code
closes file descriptors that are fully set up.

OK mpi@

date 2019-07-03T21:04:26Z
author patrick
files src/sys/arch/arm64/arm64/conf.c log diff annotate
message Allocate a new major for tap(4) also note that pseudo-device tun is for tap
as well. This was done for all archs but was not part of the arm64 import.

ok bluhm@

date 2019-07-03T21:20:14Z
author kettenis
files src/sys/dev/ofw/ofw_thermal.c log diff annotate
message OF_finddevice(9) returns -1 if the node in question couldn't be found.

date 2019-07-03T22:12:30Z
author kettenis
files src/sys/dev/ofw/ofw_thermal.c log diff annotate
message Skip thermal zones without "trips" or "cooling-maps" nodes.

date 2019-07-03T22:39:33Z
author cheloha
files src/sys/kern/kern_acct.c log diff annotate
src/sys/kern/kern_smr.c log diff annotate
src/sys/kern/kern_synch.c log diff annotate
src/sys/sys/systm.h log diff annotate
src/sys/sys/time.h log diff annotate
src/sys/uvm/uvm_pdaemon.c log diff annotate
src/sys/uvm/uvm_pmemrange.c log diff annotate
message Add tsleep_nsec(9), msleep_nsec(9), and rwsleep_nsec(9).

Equivalent to their unsuffixed counterparts except that (a) they take
a timeout in terms of nanoseconds, and (b) INFSLP, aka UINT64_MAX (not
zero) indicates that a timeout should not be set.

For now, zero nanoseconds is not a strictly valid invocation: we log a
warning on DIAGNOSTIC kernels if we see such a call. We still sleep
until the next tick in such a case, however. In the future this could
become some sort of poll... TBD.

To facilitate conversions to these interfaces: add inline conversion
functions to sys/time.h for turning your timeout into nanoseconds.

Also do a few easy conversions for warmup and to demonstrate how
further conversions should be done.

Lots of input from mpi@ and ratchov@. Additional input from tedu@,
deraadt@, mortimer@, millert@, and claudio@.

Partly inspired by FreeBSD r247787.

positive feedback from deraadt@, ok mpi@