OpenBSD cvs log

created 2019-03-03T02:53:39Z
begin 2019-02-26T00:00:00Z
end 2019-02-27T00:00:00Z
path src/sys
commits 14

date 2019-02-26T03:09:50Z
author dlg
files src/sys/dev/pci/if_ix.c log diff annotate
message put the rx buffer at the end of the mbuf

this should give a bit of space if the packet needs an m_pullup.
care is taken to ensure the packet is still aligned for the ip
stack.

ok and tweaks claudio@

date 2019-02-26T03:12:34Z
author dlg
files src/sys/dev/pci/if_ixl.c log diff annotate
message avoid a deadlock in ixl_down when calling ifq_barrier.

this is particularly noticable on sparc64 when you reboot.

ok jmatthew@

date 2019-02-26T03:17:18Z
author dlg
files src/sys/dev/pci/if_ixl.c log diff annotate
message put the rx buffer at the end of the cluster.

makes m_prepend later less likely to allocate a new mbuf.

date 2019-02-26T03:19:11Z
author dlg
files src/sys/sys/sockio.h log diff annotate
message add some generic ioctls for configuring mpls pseudowire parameters.

these will replace the monstor mpw ioctl, and will be used by an
upcoming mpls ip tunnel interface driver.

discussed with claudio@ at a2k19
ok mpi@

date 2019-02-26T03:20:08Z
author dlg
files src/sys/net/if.c log diff annotate
message check for root on mpls and pwe3 ioctls

part of a larger diff ok mpi@

date 2019-02-26T03:22:36Z
author dlg
files src/sys/net/if_mpw.c log diff annotate
message add support for the new pwe3 ioctls.

the existing mpw ioctl is still available for ldpd to use for a
(short) while.

discussed with claudio@ at a2k19
ok mpi@

date 2019-02-26T03:23:04Z
author dlg
files src/sys/net/if_mpe.c log diff annotate
message use NET_LOCK to coordinate destroying a cloned interface.

date 2019-02-26T03:44:50Z
author dlg
files src/sys/net/if_mpw.c log diff annotate
message don't check the pseudowire type in tx and rx paths.

whether the mpw interface is advertising "ethernet" or "ethernet-
tagged" is something the ends of the wire agree on (ie, ldpd is
configured a certain way), it is not something that affects ethernet
encap or decap.

the MPW ioctls can still configure it and read it, but it has no
bearing on how the driver operates on packets.

date 2019-02-26T04:04:30Z
author dlg
files src/sys/dev/pci/if_ix.c log diff annotate
message don't let rxr completely fill the rxr ring.

at the moment there are 256 slots on the right. if rxr raises the
high watermark to 256, we overwrite ring entries.

date 2019-02-26T06:26:17Z
author dlg
files src/sys/dev/pci/pcidevs.h log diff annotate
src/sys/dev/pci/pcidevs_data.h log diff annotate
message i forgot to commit a regen after fixing some bcm entries

date 2019-02-26T08:51:15Z
author kn
files src/sys/dev/pci/if_iwn.c log diff annotate
message Re-enable interrupts on resume with RF switch disabled

When disabling the switch, suspending and eventually resuming again with
wifi still off, re-enabling the switch has no effect due to interrupts
being disabled completely.

To ensure seemless operation, explicitly enable interrupts during hardware
initialization iff the switch is disabled.

While here, initialize the interrupt mask up front to avoid clearing the
previously set mask in any case.

OK mlarkin, Feedback and OK ststp

date 2019-02-26T14:24:21Z
author visa
files src/sys/conf/files log diff annotate
src/sys/kern/init_main.c log diff annotate
src/sys/kern/kern_sched.c log diff annotate
src/sys/kern/kern_smr.c log diff annotate
src/sys/kern/sched_bsd.c log diff annotate
src/sys/sys/sched.h log diff annotate
src/sys/sys/smr.h log diff annotate
src/sys/uvm/uvm_page.c log diff annotate
message Introduce safe memory reclamation, a mechanism for reclaiming shared
objects that readers can access without locking. This provides a basis
for read-copy-update operations.

Readers access SMR-protected shared objects inside SMR read-side
critical section where sleeping is not allowed. To reclaim
an SMR-protected object, the writer has to ensure mutual exclusion of
other writers, remove the object's shared reference and wait until
read-side references cannot exist any longer. As an alternative to
waiting, the writer can schedule a callback that gets invoked when
reclamation is safe.

The mechanism relies on CPU quiescent states to determine when an
SMR-protected object is ready for reclamation.

The header additionally provides an implementation of
singly- and doubly-linked lists that can be used together with SMR.
These lists allow lockless read access with a concurrent writer.

Discussed with many
OK mpi@ sashan@

date 2019-02-26T22:24:41Z
author deraadt
files src/sys/arch/macppc/stand/tbxidata/bsd.tbxi log diff annotate
src/sys/conf/newvers.sh log diff annotate
src/sys/sys/ktrace.h log diff annotate
src/sys/sys/param.h log diff annotate
message crank to 6.5-beta

date 2019-02-26T23:12:58Z
author dlg
files src/sys/dev/pci/if_ixl.c log diff annotate
message tweak the mbuf loading in the tx path so it's easier to read.

count mbuf load failures as output errors so i can see if that's
a problem (it's not, but at least i can see it isn't now).