OpenBSD cvs log

created 2021-07-25T04:20:02Z
begin 2021-07-22T00:00:00Z
end 2021-07-23T00:00:00Z
path src/sys
commits 5

date 2021-07-22T07:22:43Z
author visa
files src/sys/kern/kern_event.c log diff annotate
message Make kqpoll_dequeue() usable with lazy removal of knotes

Adjust kqpoll_dequeue() so that it will clear only badfd knotes when
called from kqpoll_init(). This is needed by kqpoll's lazy removal
of knotes. Eager removal in kqpoll_dequeue() would defeat kqpoll's
attempt to reuse previously established knotes under workloads where
knote activation tends to occur already before next kqpoll scan.

Prompted by mpi@

date 2021-07-22T11:07:17Z
author mvs
files src/sys/netmpls/mpls_input.c log diff annotate
message In revision 1.74 of netmpls/mpls_input.c we use rtisvalid(4) to check
the result returned by rtalloc(4) instead of a compare with NULL. Since
it's assumed this returned `rt' could be non NULL we should use
rtfree(4) in error path. rtfree(4) also allows NULL as input.

ok claudio@

date 2021-07-22T16:40:19Z
author tb
files src/sys/net/ppp-deflate.c log diff annotate
message Add sizes for free() in zlib

Rebased version of a diff from miod who described it as follows:

This tries to keep diffability against upstream, hence a questionable
choice of the size type for zcfree() - but all sizes should fit in 32
bits anyway.

Since all zcfree routines used in the tree cope with NULL arguments
(including the various alloc.c used by the boot blocks), I have
simplified TRY_FREE to compensate for the growth.

Reminded by and ok mpi

date 2021-07-22T16:40:20Z
author tb
files src/sys/lib/libz/deflate.c log diff annotate
src/sys/lib/libz/infback.c log diff annotate
src/sys/lib/libz/inflate.c log diff annotate
src/sys/lib/libz/zlib.h log diff annotate
src/sys/lib/libz/zopenbsd.c log diff annotate
src/sys/lib/libz/zutil.h log diff annotate
message Add sizes for free() in zlib

Rebased version of a diff from miod who described it as follows:

This tries to keep diffability against upstream, hence a questionable
choice of the size type for zcfree() - but all sizes should fit in 32
bits anyway.

Since all zcfree routines used in the tree cope with NULL arguments
(including the various alloc.c used by the boot blocks), I have
simplified TRY_FREE to compensate for the growth.

Reminded by and ok mpi

date 2021-07-22T18:32:33Z
author mglocker
files src/sys/dev/usb/dwc2/dwc2.c log diff annotate
src/sys/dev/usb/dwc2/dwc2.h log diff annotate
src/sys/dev/usb/dwc2/dwc2_core.c log diff annotate
src/sys/dev/usb/dwc2/dwc2_core.h log diff annotate
src/sys/dev/usb/dwc2/dwc2_coreintr.c log diff annotate
src/sys/dev/usb/dwc2/dwc2_hcd.c log diff annotate
src/sys/dev/usb/dwc2/dwc2_hcd.h log diff annotate
src/sys/dev/usb/dwc2/dwc2_hcdddma.c log diff annotate
src/sys/dev/usb/dwc2/dwc2_hcdintr.c log diff annotate
src/sys/dev/usb/dwc2/dwc2_hcdqueue.c log diff annotate
src/sys/dev/usb/dwc2/dwc2_hw.h log diff annotate
src/sys/dev/usb/dwc2/dwc2var.h log diff annotate
src/sys/dev/usb/dwc2/list.h log diff annotate
message Sync dwctwo(4) with the NetBSD-current code base.

On the Raspberry Pi 3 Model B+ this does as a benefit:

* Enable the USB on-board Ethernet controller through mue(4).
* Enable the two USB uhub2 ports for removable devices.

Feedback incorporated from kettenis@ and jsg@.

ok kettenis@