Re: pflow(4) percpu counters

2017-02-21 Thread Jeremie Courreges-Anglas
Jeremie Courreges-Anglas writes: > Florian Obser writes: > >> On Sat, Feb 18, 2017 at 06:06:01PM +0100, Jeremie Courreges-Anglas wrote: >>> >>> This one is a bit weird, the driver doesn't just increment the stats but >>> also uses them at runtime, hence

Re: poll(2) vs NET_LOCK()

2017-02-21 Thread Theo Buehler
On Tue, Feb 21, 2017 at 12:07:59PM +0100, Martin Pieuchot wrote: > Do not grab the NET_LOCK() when polling on unix domain sockets. This > was the reason for the "X freeze" reported by pirofti@. > > ok? Yes, indeed, this fixes the freeze on both, my iwn and my iwm. ok > > Index:

Re: c99 initialize struct protosw

2017-02-21 Thread Martin Pieuchot
On 20/02/17(Mon) 22:30, Mark Kettenis wrote: > David Hill schreef op 2017-02-19 03:22: > > Hello - > > > > This moves the 'struct protosw' declarations to use C99 initializers. > > Requested by mpi@ > > With C99 initializers it is no longer necessary to explicitly > initialize zero-initialized

poll(2) vs NET_LOCK()

2017-02-21 Thread Martin Pieuchot
Do not grab the NET_LOCK() when polling on unix domain sockets. This was the reason for the "X freeze" reported by pirofti@. ok? Index: kern/sys_socket.c === RCS file: /cvs/src/sys/kern/sys_socket.c,v retrieving revision 1.29 diff

Re: npppd: reload enables stripping NT domains on radius

2017-02-21 Thread YASUOKA Masahiko
On Tue, 21 Feb 2017 08:31:13 +0100 Patrick Wildt wrote: > On Tue, Feb 21, 2017 at 02:11:05PM +0900, YASUOKA Masahiko wrote: >> On Mon, 20 Feb 2017 11:38:19 +0100 >> Patrick Wildt wrote: >> > when using RADIUS, the NT domains should not be stripped from the

Re: [PATCH] bc(1) should write error messages to standard error

2017-02-21 Thread Otto Moerbeek
On Tue, Feb 21, 2017 at 07:19:13AM +0100, Otto Moerbeek wrote: > On Tue, Feb 21, 2017 at 07:00:34AM +0100, Otto Moerbeek wrote: > > > On Tue, Feb 21, 2017 at 04:08:57AM +0100, Martijn Dekker wrote: > > > > > Upon encountering a parsing error, bc(1) passes an error message on to > > > dc(1),

Re: NFS splsoftnet()

2017-02-21 Thread Martin Pieuchot
On 13/02/17(Mon) 12:21, Martin Pieuchot wrote: > Network processing is not longer done in soft-interrupt context. That > means that processes doing syscalls no longer need to raise the IPL > level to guarantee consistency, the KERNEL_LOCK() is enough. > > Diff below kills two unnecessary

Re: set sc_vendor in bcm2835_dwctwo

2017-02-21 Thread Mark Kettenis
Jonathan Gray schreef op 2017-02-21 07:08: Maybe one day these drivers will attach to a non-Broadcom dwc2 but for now they only match the Broadcom compat strings. -uhub0 at usb0 configuration 1 interface 0 "vendor 0x DWC2 root hub" rev 2.00/1.00 addr 1 +uhub0 at usb0 configuration 1

relayd crash using DNS-sanitizing protocol

2017-02-21 Thread Michael W. Lucas
Hi, Running 6.0 snapshot from 5 Feb on amd64, and experimenting with relayd. I set up a DNS cluster using redirects, as per relayd.conf(5). Worked fine, so I'm pretty sure the DNS servers behind my relayd box work. The man page says that relayd has a relay protocol for DNS, that randomizes

Re: make sosetopt responsible for m_free

2017-02-21 Thread David Hill
On Mon, Feb 06, 2017 at 01:16:45PM +0100, Martin Pieuchot wrote: > On 03/02/17(Fri) 11:02, David Hill wrote: > > On Fri, Feb 03, 2017 at 09:50:40AM +0100, Martin Pieuchot wrote: > > > On 02/02/17(Thu) 12:12, David Hill wrote: > > > > On Thu, Feb 02, 2017 at 09:34:07AM +0100, Martin Pieuchot wrote:

Re: poll(2) vs NET_LOCK()

2017-02-21 Thread Alexander Bluhm
On Tue, Feb 21, 2017 at 12:07:59PM +0100, Martin Pieuchot wrote: > Do not grab the NET_LOCK() when polling on unix domain sockets. This > was the reason for the "X freeze" reported by pirofti@. > > ok? OK bluhm@ > > Index: kern/sys_socket.c >

Re: c99 initialize struct protosw

2017-02-21 Thread Alexander Bluhm
On Tue, Feb 21, 2017 at 11:21:15AM -0500, David Hill wrote: > Here is an updated diff without explicitly setting 0/NULL. > > --- kern/uipc_proto.c 5 Feb 2017 07:57:08 - 1.11 > +++ kern/uipc_proto.c 21 Feb 2017 00:42:46 - > +{ > + .pr_type = SOCK_STREAM, > + .pr_domain = , > +

regress/pledge: test for sendfd/recvfd

2017-02-21 Thread Sebastien Marie
Hi, The following diff adds regress tests for sendfd/recvfd promises. The regress will test 5 types of operations for all 7 types of vnodes. test types: - nopledge : no pledge involved - just testing send/recv just work as expected - sendfd : pledge the sender with "stdio sendfd" -

Re: c99 initialize struct protosw

2017-02-21 Thread David Hill
Here is an updated diff without explicitly setting 0/NULL. Index: kern/uipc_proto.c === RCS file: /cvs/src/sys/kern/uipc_proto.c,v retrieving revision 1.11 diff -u -p -r1.11 uipc_proto.c --- kern/uipc_proto.c 5 Feb 2017 07:57:08