OpenBSD cvs log

created 2019-06-13T16:51:07Z
begin 2019-06-10T00:00:00Z
end 2019-06-11T00:00:00Z
path src/sys
commits 14

date 2019-06-10T03:15:53Z
author visa
files src/sys/kern/kern_resource.c log diff annotate
src/sys/sys/proc.h log diff annotate
message Avoid changing resource limits in rucheck() by introducing a new state
variable that tracks when to send next SIGXCPU. This eases MP work and
prevents accidental alteration of shared resource limit structs.

OK mpi@ semarie@

date 2019-06-10T04:40:13Z
author jsg
files src/sys/dev/pci/drm/drm_crtc.c log diff annotate
src/sys/dev/pci/drm/drm_plane.c log diff annotate
message drm/lease: Make sure implicit planes are leased

From Daniel Vetter
390a0fd31b02f2f7086af2f3bdb8ae576b9a4b84 in linux 4.19.y/4.19.49
204f640da6914844b3270b41b29c84f6e3b74083 in mainline linux

date 2019-06-10T14:38:06Z
author kettenis
files src/sys/dev/acpi/acpi.c log diff annotate
src/sys/dev/acpi/acpireg.h log diff annotate
src/sys/dev/acpi/acpivar.h log diff annotate
message Print proper ACPI version number.

ok mlarkin@

date 2019-06-10T15:06:03Z
author mpi
files src/sys/arch/i386/i386/esm.c log diff annotate
message Use PWAIT instead of PUSER in tsleep(9).

It doesn't matter in this case and reducing the number of PUSER makes
the scheduler logic easier to understand.

ok kettenis@, visa@

date 2019-06-10T16:32:51Z
author mpi
files src/sys/net/if_pfsync.c log diff annotate
src/sys/net/if_vxlan.c log diff annotate
src/sys/netinet/ip_carp.c log diff annotate
src/sys/netinet/ip_output.c log diff annotate
src/sys/netinet6/ip6_output.c log diff annotate
message Use mallocarray(9) & put some free(9) sizes for M_IPMOPTS allocations.

ok semarie@, visa@

date 2019-06-10T16:33:02Z
author stsp
files src/sys/net80211/ieee80211.c log diff annotate
src/sys/net80211/ieee80211_node.c log diff annotate
message Revised version of 'ifconfig mode' command fix.

The 'mode' command is supposed to force a wireless interface into 11a/b/g/n
media mode. This stopped working some time ago, probably during my work on
background scanning. Problem spotted by mlarkin@ who noticed that interfaces
were using 11g mode while forced to 11b mode.

ok phessler, jmatthew (earlier version)
relentless testing by krw@

date 2019-06-10T21:55:16Z
author dlg
files src/sys/net/if_tun.c log diff annotate
message don't allow userland to change if_type.

if_type is now immutable in tun(4) and tap(4)

ok claudio@ mpi@

date 2019-06-10T22:59:00Z
author dlg
files src/sys/sys/mbuf.h log diff annotate
message add M_TIMESTAMP as a csum_flags option to say ph_timestamp is set

this is so hardware that supports timestamping can set the time and
say so for things like bpf and the SO_TIMESTAMP socket option to use.

the intention is that ph_timestamp will store the nanosecond since
the system booted, which is in line with how fq_codel (the only
user of the field at the moment) uses it.

date 2019-06-10T23:05:52Z
author dlg
files src/sys/dev/pci/if_mcx.c log diff annotate
message support hardware timestamping for received packets.

the chip has a cycle counter or something, and the value of the
counter when the packet is sent to the host is stored in the
completion queue entry.

the driver periodically checks the cycle counter and records the
time at that point, so the rx path can do some maths to figure out
what the clock time is for the cycle counter. if the driver is
calibrated with the chips counter, the rx packets are timestamped.

this is based on the changes made to freebsd, but with some
simplifications.

date 2019-06-10T23:26:29Z
author dlg
files src/sys/sys/time.h log diff annotate
message NSEC_TO_TIMEVAL turns nanoseconds in a uint64_t into a struct timeval

add NSEC_TO_TIMESPEC while here

ok cheloha@

date 2019-06-10T23:45:19Z
author dlg
files src/sys/kern/uipc_mbuf.c log diff annotate
src/sys/sys/mbuf.h log diff annotate
message add m_microtime for getting the wall clock time associated with a packet

if the packet has the M_TIMESTAMP csum_flag, ph_timestamp is added
to the boottime clock, otherwise it just uses microtime().

date 2019-06-10T23:48:21Z
author dlg
files src/sys/netinet/ip_input.c log diff annotate
message use m_microtime instead of microtime for SO_TIMESTAMP socketopt handling

drivers can set ph_timestamp when packets are received by the
hardware, which should be more accurate and cheaper than getting
the clock when the packet is queued on the socket.

date 2019-06-10T23:48:22Z
author dlg
files src/sys/netinet6/ip6_input.c log diff annotate
message use m_microtime instead of microtime for SO_TIMESTAMP socketopt handling

drivers can set ph_timestamp when packets are received by the
hardware, which should be more accurate and cheaper than getting
the clock when the packet is queued on the socket.

date 2019-06-10T23:49:45Z
author dlg
files src/sys/net/bpf.c log diff annotate
message use m_microtime to get the packet rx time it might be available.