OpenBSD cvs log

created 2023-04-30T19:12:04Z
begin 2023-04-22T00:00:00Z
end 2023-04-23T00:00:00Z
path src/sys
commits 7

date 2023-04-22T04:39:46Z
author dlg
files src/sys/net/if.c log diff annotate
src/sys/net/if_vlan.c log diff annotate
src/sys/net/if_vlan_var.h log diff annotate
message revert vlan(4) inherits TSO flags

tb reports amd64 RAMDISK doesn't build with it.

also, vlan_flags_from_parent doesn't look right right. it iterates
over ifnetlist, which is all interfaces in the system, but appears
to assume they're all vlan interfaces and so uses a vlan_softc *
to inspect their if_softc pointers.

date 2023-04-22T05:01:44Z
author dlg
files src/sys/dev/fdt/if_dwqe_fdt.c log diff annotate
src/sys/dev/ic/dwqe.c log diff annotate
message use if_baudrate and if_link_state for mac config, not mii media values

the phy code sets if_baudrate and if_link_state, so the information
needed to config the mac on the chip is there anyway. it also has
the benefit that the driver doesnt have to understand every type
of media (eg, 1000baseTX vs 1000baseSX) because they're both the
same speed and that's what matters when configuring the chip and
the clocks etc.

this is a step toward being able to use a fixed-link node in the
device tree instead of a phy, as is found on the banana pi bpi-r2
pro on the gmac connected to a switch chip.

date 2023-04-22T06:36:35Z
author dlg
files src/sys/dev/ic/dwqe.c log diff annotate
message reduce the delays used in the mii/mdio bus ops

this produces a significant speed up.

say you're reading 40ish mib counters off a port on switch chip,
where each counter read relies on multiple mdio operations. it took
well over a second to read the counters off a port in my my initial
version. after optimising the switch reads i got that down to a bit
under a second. after this change in dwqe i can read counters off
5 ports in about 0.03 seconds.

ok patrick@

date 2023-04-22T18:26:17Z
author guenther
files src/sys/arch/amd64/amd64/db_disasm.c log diff annotate
message Teach the disassembler about xrstors, xsavec, and xsaves

ok mlarkin@

date 2023-04-22T18:27:28Z
author guenther
files src/sys/arch/amd64/amd64/cpu.c log diff annotate
src/sys/arch/amd64/amd64/identcpu.c log diff annotate
src/sys/arch/amd64/amd64/mds.S log diff annotate
src/sys/arch/amd64/amd64/Attic/vmm.c log diff annotate
src/sys/arch/amd64/include/specialreg.h log diff annotate
message Rename the XCR0_* #defines to XFEATURE_* and add the new supervisor-state
features: while all are appropriate for xsaves/xrstors, the
supervisor-state features aren't for xcr0 but rather for the new XSS_MSR,
making the current names kinda confusing.

Add #defines for masking bits for xcr0 vs XSS.

Add and report the new XSAVE_XFD xsave subfeature bit.

ok mlarkin@

date 2023-04-22T20:51:56Z
author mvs
files src/sys/net/pfkeyv2.c log diff annotate
src/sys/netinet/ip_spd.c log diff annotate
message Call pfkeyv2_sysctl_policydumper() with shared netlock. It performs
read-olny access to netlock protected data, so the radix tree will
not be modified during spd_table_walk() run.

Also change netlock assertion within spd_table_add() and
ipsec_delete_policy() to exclusive. These are correlating functions
which modifies radix tree, so make us sure spd_table_walk() run with
shared netlock is safe.

Feedback and ok by bluhm@

date 2023-04-22T23:51:27Z
author cheloha
files src/sys/kern/kern_clockintr.c log diff annotate
message clockintr, ddb(4): label non-pending clock interrupts "idle"

"idle" is more obvious than "est" and requires no knowledge of the
implementation.