NetBSD 9.0 IPfilter MSS clamp regression

2020-04-23 Thread Emmanuel Dreyfus
Hello IPfilter on NetBSD 9.0 seems to have issues. On all i386 XEN3PAE_DOMU machines where I use filtering, it crashes (see http://mail-index.netbsd.org/tech-kern/2020/04/18/msg026280.html) Now I have a problem with MSS clamp. /etc/ipf.conf contains pass in from any to any pass out from any to

Ipfilter truncates outgoing packets (was: Re: ipfilter crash in latest netbsd-9)

2020-04-23 Thread Emmanuel Dreyfus
Emmanuel Dreyfus wrote: > After upgrading to 9.0, I experienced crashes when enabling > ipfilter (backtrace below). I tried latest netbsd-9 kernel without > improvement. NB: this is on i386 XEN3PAE_DOMU Another problem: even with no rule loaded (empty ipf.conf and ipnat.conf), ipfilter

Re: Am I using bus_dma right?

2020-04-23 Thread Mouse
> Let me try to simplify these concepts. Thank you; that would help significantly. >> I'm not doing read/write DMA. [...] > If you are not doing DMA you don't need to do any memory > synchronization (modulo SMP issues with other CPUs, but that's a > completely different topic.) Oh, I'm doing

Re: Am I using bus_dma right?

2020-04-23 Thread Eduardo Horvath
Let me try to simplify these concepts. On Thu, 23 Apr 2020, Mouse wrote: > I'm not doing read/write DMA. DMA never transfers from memory to the > device. (Well, I suppose it does to a small extent, in that the device > reads buffer descriptors. But the buffer descriptors are set up once >

Re: Am I using bus_dma right?

2020-04-23 Thread Mouse
>> while (fewer than n samples copied) >> DMASYNC_POSTREAD for sample at offset o > That should be PREREAD (to make sure the dma'd data is visible for > the cpu) >> read sample at offset o > and teh POSTREAD should be here >>

Re: Am I using bus_dma right?

2020-04-23 Thread Martin Husemann
On Wed, Apr 22, 2020 at 05:53:46PM -0400, Mouse wrote: > s = splhigh() > while (fewer than n samples copied) > DMASYNC_POSTREAD for sample at offset o That should be PREREAD (to make sure the dma'd data is visible for the cpu) >