OpenBSD cvs log

created 2019-05-04T03:07:46Z
begin 2017-11-04T00:00:00Z
end 2017-11-05T00:00:00Z
path src/sys
commits 10

date 2017-11-04T10:55:38Z
author florian
files src/sys/dev/isa/if_ie.c log diff annotate
message Interface counters should only increment.
haesbaert points out that ie(4) does a weird error accounting dance
which requires it to decrement a interface counter in some cases.
Shuffle things around to only ever do an increment
"sure" kettenis, OK mpi

date 2017-11-04T10:59:43Z
author visa
files src/sys/arch/octeon/dev/cn30xxfpavar.h log diff annotate
src/sys/arch/octeon/dev/if_cnmac.c log diff annotate
message One macro for cache line size is enough.

date 2017-11-04T11:01:27Z
author visa
files src/sys/arch/octeon/dev/if_cnmac.c log diff annotate
message Check buffer size parameters at compile time.

date 2017-11-04T11:18:17Z
author visa
files src/sys/arch/octeon/dev/cn30xxfpa.c log diff annotate
src/sys/arch/octeon/dev/cn30xxfpavar.h log diff annotate
src/sys/arch/octeon/dev/cn30xxipd.c log diff annotate
message Use the macro for cache line size.

date 2017-11-04T13:11:54Z
author mpi
files src/sys/net/if.c log diff annotate
src/sys/netinet/in.c log diff annotate
src/sys/netinet6/in6.c log diff annotate
message Stop calling ifp->if_ioctl() inside in{,6}_ioctl().

Instead return EOPNOTSUPP and call it from ifioctl(). This will help
getting per-driver ioctl routines outside of need the NET_LOCK().

While here always return ENXIO when ``ifp'' is NULL.

ok visa@, florian@

date 2017-11-04T14:13:53Z
author mpi
files src/sys/kern/kern_event.c log diff annotate
src/sys/kern/uipc_socket.c log diff annotate
src/sys/miscfs/fifofs/fifo_vnops.c log diff annotate
src/sys/sys/event.h log diff annotate
src/sys/sys/socketvar.h log diff annotate
message Make it possible for multiple threads to enter kqueue_scan() in parallel.

This is a requirement to use a sleeping lock inside kqueue filters.
It is now possible, but not recommended, to sleep inside ``f_event''.

Threads iterating over the list of pending events are now recognizing
and skipping other threads' markers. knote_acquire() and knote_release()
must be used to "own" a knote to make sure no other thread is sleeping
with a reference on it.

Acquire and marker logic taken from DragonFly but the KERNEL_LOCK()
is still serializing the execution of the kqueue code.

This also enable the NET_LOCK() in socket filters.

Tested by abieber@ & juanfra@, run by naddy@ in a bulk, ok visa@, bluhm@

date 2017-11-04T16:04:15Z
author florian
files src/sys/arch/alpha/conf/Makefile.alpha log diff annotate
src/sys/arch/amd64/conf/Makefile.amd64 log diff annotate
src/sys/arch/arm64/conf/Makefile.arm64 log diff annotate
message Since rev 1.502 of rc(8) it creates a /bsd.booted hard link. At the
end of rc we call reorder_kernel which creates a /obsd hard link to
the same kernel.
In the past obsd was only created when doing a manual make install in
the kernel sources.
There is no need for two backup hard links during boot, rearange the
kernel Makefiles to restore previous behaviour and thus stopping
reorder_kernel from scribbling over /obsd.

Makes muscle memory of some kernel developers work again: /obsd can
serve as a known good kernel; and there was much rejoycing...

Discussed at length with benno, rpe, phessler and tb at
p2k17.

Seems like a good idea to deraadt.

OK benno, phessler, rpe, tb

date 2017-11-04T16:04:16Z
author florian
files src/sys/arch/armv7/conf/Makefile.armv7 log diff annotate
src/sys/arch/hppa/conf/Makefile.hppa log diff annotate
src/sys/arch/i386/conf/Makefile.i386 log diff annotate
src/sys/arch/landisk/conf/Makefile.landisk log diff annotate
src/sys/arch/loongson/conf/Makefile.loongson log diff annotate
src/sys/arch/luna88k/conf/Makefile.luna88k log diff annotate
src/sys/arch/macppc/conf/Makefile.macppc log diff annotate
src/sys/arch/octeon/conf/Makefile.octeon log diff annotate
src/sys/arch/sgi/conf/Makefile.sgi log diff annotate
src/sys/arch/sparc64/conf/Makefile.sparc64 log diff annotate
message Since rev 1.502 of rc(8) it creates a /bsd.booted hard link. At the
end of rc we call reorder_kernel which creates a /obsd hard link to
the same kernel.
In the past obsd was only created when doing a manual make install in
the kernel sources.
There is no need for two backup hard links during boot, rearange the
kernel Makefiles to restore previous behaviour and thus stopping
reorder_kernel from scribbling over /obsd.

Makes muscle memory of some kernel developers work again: /obsd can
serve as a known good kernel; and there was much rejoycing...

Discussed at length with benno, rpe, phessler and tb at
p2k17.

Seems like a good idea to deraadt.

OK benno, phessler, rpe, tb

date 2017-11-04T16:48:09Z
author mpi
files src/sys/kern/uipc_proto.c log diff annotate
src/sys/net/Attic/raw_cb.h log diff annotate
message raw_init() is dead and doesn't need to be included there.

date 2017-11-04T16:58:46Z
author tb
files src/sys/net/if.c log diff annotate
message Move the ioctls that only need a read lock from ifioctl into a new
function ifioctl_get(). This simplifies an upcoming diff.

suggested by & ok mpi, input & ok florian