powerpc64: do tc_init(9) before cpu_startclock()

2022-05-24 Thread Scott Cheloha
In the future, the clock interrupt will need a working timecounter to accurately reschedule itself. Move tc_init(9) up before cpu_startclock(). (I can't test this but it seems correct.) ok? Index: clock.c === RCS file: /cvs/src/sys

tcpdump: add RFC9234 "BGP Role" support

2022-05-24 Thread Job Snijders
Hi all, I based this off reading https://datatracker.ietf.org/doc/html/rfc9234 This code is untested! I haven't had a chance yet to tcpdump a RFC 9234 capable BGP speaker. There might be some out there, according to https://trac.ietf.org/trac/idr/wiki/draft-ietf-idr-bgp-open-policy Kind regards,

Re: ffs_truncate: Missing uvm_vnp_uncache() w/ softdep

2022-05-24 Thread Martin Pieuchot
On 24/05/22(Tue) 15:24, Mark Kettenis wrote: > > Date: Tue, 24 May 2022 14:28:39 +0200 > > From: Martin Pieuchot > > > > The softdep code path is missing a UVM cache invalidation compared to > > the !softdep one. This is necessary to flush pages of a persisting > > vnode. > > > > Since uvm_vnp_

Re: Call uvm_vnp_uncache() before VOP_RENAME()

2022-05-24 Thread Mark Kettenis
> Date: Tue, 24 May 2022 14:23:46 +0200 > From: Martin Pieuchot > > On 17/05/22(Tue) 16:55, Martin Pieuchot wrote: > > nfsrv_rename() should behave like dorenameat() and tell UVM to "flush" a > > possibly mmap'ed file before calling VOP_RENAME(). > > > > ok? > > Anyone? Makes sense to me. ok

Re: ffs_truncate: Missing uvm_vnp_uncache() w/ softdep

2022-05-24 Thread Mark Kettenis
> Date: Tue, 24 May 2022 14:28:39 +0200 > From: Martin Pieuchot > > The softdep code path is missing a UVM cache invalidation compared to > the !softdep one. This is necessary to flush pages of a persisting > vnode. > > Since uvm_vnp_setsize() is also called later in this function for the > !so

Please test: rewrite of pdaemon

2022-05-24 Thread Martin Pieuchot
Diff below brings in & adapt most of the changes from NetBSD's r1.37 of uvm_pdaemon.c. My motivation for doing this is to untangle the inner loop of uvmpd_scan_inactive() which will allow us to split the global `pageqlock' mutex in a next step. The idea behind this change is to get rid of the too

ffs_truncate: Missing uvm_vnp_uncache() w/ softdep

2022-05-24 Thread Martin Pieuchot
The softdep code path is missing a UVM cache invalidation compared to the !softdep one. This is necessary to flush pages of a persisting vnode. Since uvm_vnp_setsize() is also called later in this function for the !softdep case move it to not call it twice. ok? Index: ufs/ffs/ffs_inode.c ==

Re: Call uvm_vnp_uncache() before VOP_RENAME()

2022-05-24 Thread Martin Pieuchot
On 17/05/22(Tue) 16:55, Martin Pieuchot wrote: > nfsrv_rename() should behave like dorenameat() and tell UVM to "flush" a > possibly mmap'ed file before calling VOP_RENAME(). > > ok? Anyone? > Index: nfs/nfs_serv.c > === > RCS file:

Re: rpki-client unify max request defines

2022-05-24 Thread Theo Buehler
On Tue, May 24, 2022 at 10:03:31AM +0200, Claudio Jeker wrote: > This diff moves and renames the defines that define the maximum number of > parallel requests for http and rsync. > The defines are now MAX_HTTP_REQUESTS and MAX_RSYNC_REQUESTS the values > remane the same. ok > Also move the memset

rpki-client unify max request defines

2022-05-24 Thread Claudio Jeker
This diff moves and renames the defines that define the maximum number of parallel requests for http and rsync. The defines are now MAX_HTTP_REQUESTS and MAX_RSYNC_REQUESTS the values remane the same. Also move the memset of pollfd sets in http.c into the loop. It is not needed but I prefer it that