OpenBSD cvs log

created 2023-05-21T01:03:42Z
begin 2023-04-05T00:00:00Z
end 2023-04-06T00:00:00Z
path src/sys
commits 9

date 2023-04-05T00:23:06Z
author cheloha
files src/sys/kern/kern_clockintr.c log diff annotate
message clockintr: add clockintr_cancel()

As the name suggests, clockintr_cancel() cancels any pending
expiration of the given clockintr.

I think we will need this in the near future.

date 2023-04-05T10:40:37Z
author kn
files src/sys/netinet6/nd6.c log diff annotate
message Call getuptime(9) once for consistency, sync with ARP

Feedback OK bluhm

date 2023-04-05T10:45:07Z
author kettenis
files src/sys/dev/mii/miivar.h log diff annotate
src/sys/dev/mii/rgephy.c log diff annotate
src/sys/dev/mii/rgephyreg.h log diff annotate
message Implement software control for the internal delays of the RTL8211F PHY.
Since we need to retain the hardware/firmware configuration of the delays
in most existing hardware that uses rgephy(4) (such as PCIe NICs), add a
bew MIIF_SETDELAY flag that controls the software configuration of the
delays.

ok dlg@, jsg@

date 2023-04-05T10:48:12Z
author kettenis
files src/sys/dev/fdt/dwpcie.c log diff annotate
message Call dwpcie_link_config() when initializing the RK3568 PCIe controllers.
This makes sure the PCIe link runs at the maximum possible speed.

Prompted by a diff from dlg@, who also tested this alternative diff.

ok dlg@

date 2023-04-05T13:56:31Z
author kn
files src/sys/netinet6/ip6_forward.c log diff annotate
message Call getuptime(9) once for consistency; OK bluhm

date 2023-04-05T17:23:30Z
author mglocker
files src/sys/dev/ic/ufshci.c log diff annotate
message Enable Force Unit Access (FUA) for write commands. This seems to fix
intermittent data corruptions which I faced. The documentation says about
FUA for write commands:

"The Device Server shall write the logical blocks to the medium, and shall
not complete the command with GOOD status until all the logical blocks have
been written on the medium without error."

date 2023-04-05T19:35:23Z
author bluhm
files src/sys/net/if.c log diff annotate
src/sys/net/if_var.h log diff annotate
src/sys/netinet/if_ether.c log diff annotate
src/sys/netinet6/nd6.c log diff annotate
src/sys/netinet6/nd6.h log diff annotate
src/sys/netinet6/nd6_nbr.c log diff annotate
message ARP has a queue of packets that should be sent after name resolution.
ND6 did only hold a single packet. Unify the logic and add a mbuf
hold queue to struct llinfo_nd6. This is MP safe and queue limits
are tracked with atomic operations. New function if_mqoutput() has
common code for ARP and ND6. ln_saddr6 holds the source address
of the requesting packet. That is easier than fiddling with mbuf
queue in nd6_ns_output().
OK kn@

date 2023-04-05T21:51:47Z
author bluhm
files src/sys/netinet/icmp6.h log diff annotate
src/sys/netinet/if_ether.c log diff annotate
src/sys/netinet/ip_input.c log diff annotate
src/sys/netinet/ip_var.h log diff annotate
src/sys/netinet6/icmp6.c log diff annotate
src/sys/netinet6/nd6.c log diff annotate
src/sys/netinet6/nd6.h log diff annotate
message ARP has a sysctl to show the number of packets waiting for an arp
response. Implement analog sysctl net.inet6.icmp6.nd6_queued for
ND6 to reduce places where mbufs can hide within the kernel.
Atomic operations operate on unsigned int. Make the type of total
hold queue length consistent.
Use atomic load to read the value for the sysctl. This clarifies
why no lock around sysctl_rdint() is needed.
OK mvs@ kn@

date 2023-04-05T23:01:03Z
author kn
files src/sys/net/if_ethersubr.c log diff annotate
src/sys/netinet6/nd6.c log diff annotate
message Push kernel lock into nd6_resolve()

Tested as part of bigger unlock diffs, commit now as tiny first step.

OK bluhm