Re: [PATCH] Convert ddb_sysctl to sysctl_bounded_arr

2020-12-04 Thread Greg Steuck
George Koehler writes: > On Mon, 30 Nov 2020 20:04:10 -0800 > Greg Steuck wrote: > >> Tested with a bunch of manual sysctl -w's. >> >> OK? > > I'm not sure about this diff. I'm more likely to do > ddb{0}> set $radix = 0t2 > and less likely to do > # sysctl ddb.radix=2 > but you

Re: [PATCH] fixes relayd Websocket "Connection: close" header when Upgrade is requested

2020-12-04 Thread Franz Bettag
thanks for bringing it up again, i always have to patch multiple relayds after upgrades. -.- Sent from my iPad > On 4. Dec 2020, at 14:18, Marcus MERIGHI wrote: > > Hello! > > This patch wasn't commited and not discussed (publicly). > > It lets me use relayd as a front-end to the

Re: srp_finalize(9): tsleep(9) -> tsleep_nsec(9)

2020-12-04 Thread Scott Cheloha
On Fri, Dec 04, 2020 at 09:56:02AM +0100, Claudio Jeker wrote: > On Thu, Dec 03, 2020 at 10:05:30PM -0600, Scott Cheloha wrote: > > Hi, > > > > srp_finalize(9) uses tsleep(9) to spin while it waits for the object's > > refcount to reach zero. It blocks for up to 1 tick and then checks > > the

Re: mbg(4): tsleep(9) -> tsleep_nsec(9)

2020-12-04 Thread Scott Cheloha
On Fri, Dec 04, 2020 at 10:07:07AM +0100, Claudio Jeker wrote: > On Thu, Dec 03, 2020 at 10:42:50PM -0600, Scott Cheloha wrote: > > Hi, > > > > mbg(4) is among the few remaining drivers using tsleep(9). > > > > In a few spots, when the kernel is not cold, the driver will spin for > > up to 1/10

Re: Switch select(2) to kqueue-based implementation

2020-12-04 Thread Martin Pieuchot
On 30/11/20(Mon) 17:23, Martin Pieuchot wrote: > On 30/11/20(Mon) 17:06, Visa Hankala wrote: > > On Mon, Nov 30, 2020 at 01:28:14PM -0300, Martin Pieuchot wrote: > > > I plan to commit this in 3 steps, to ease a possible revert: > > > - kevent(2) refactoring > > > - introduction of newer kq*

Re: [PATCH] fixes relayd Websocket "Connection: close" header when Upgrade is requested

2020-12-04 Thread Marcus MERIGHI
Hello! This patch wasn't commited and not discussed (publicly). It lets me use relayd as a front-end to the mattermost-server. Just a friendly reminder... @franz: Thank you! Marcus fr...@bett.ag (Franz Bettag), 2020.03.04 (Wed) 17:52 (CET): > After migrating my home setup from nginx reverse

Re: relax loopback rule for networks

2020-12-04 Thread Stuart Henderson
On 2020/12/04 12:36, Claudio Jeker wrote: > In bgpd network inet static and network inet connected should skip > networks that use 127.0.0.1 as gateway. (This is to prevent network inet > static picking up reject routes like 224/4). > This does not really make sense for network inet rtlabel

Re: Use SMR_TAILQ for `ps_threads'

2020-12-04 Thread Martin Pieuchot
On 04/12/20(Fri) 12:01, Jonathan Matthew wrote: > On Wed, Dec 02, 2020 at 11:41:04AM -0300, Martin Pieuchot wrote: > > [...] > > Could you try the diff below that only call smr_barrier() for multi- > > threaded processes with threads still in the list. I guess this also > > answers guenther@'s

relax loopback rule for networks

2020-12-04 Thread Claudio Jeker
In bgpd network inet static and network inet connected should skip networks that use 127.0.0.1 as gateway. (This is to prevent network inet static picking up reject routes like 224/4). This does not really make sense for network inet rtlabel "theones". Using rtlabels the operator is in control and

Re: PF synproxy should act on inbound packets only

2020-12-04 Thread Alexander Bluhm
On Fri, Dec 04, 2020 at 01:08:53AM +0100, Alexandr Nedvedicky wrote: > below is updated diff. The new diff also updates pf.conf(5) manpage. OK bluhm@ A note for the man page. > @@ -2126,6 +2126,9 @@ will not work if > .Xr pf 4 > operates on a > .Xr bridge 4 . > +Also > +.Cm synproxy state >

Re: hvn(4): msleep(9) -> msleep_nsec(9)

2020-12-04 Thread Andre Stoebe
Hello Scott, works fine here. Regards, Andre OpenBSD 6.8-current (GENERIC.MP) #8: Fri Dec 4 10:21:19 CET 2020 an...@dev.stoe.be:/sys/arch/amd64/compile/GENERIC.MP real mem = 4278124544 (4079MB) avail mem = 4133175296 (3941MB) random: good seed from bootblocks mpath0 at root scsibus0 at

Re: mbg(4): tsleep(9) -> tsleep_nsec(9)

2020-12-04 Thread Claudio Jeker
On Thu, Dec 03, 2020 at 10:42:50PM -0600, Scott Cheloha wrote: > Hi, > > mbg(4) is among the few remaining drivers using tsleep(9). > > In a few spots, when the kernel is not cold, the driver will spin for > up to 1/10 seconds waiting for the MBG_BUSY flag to go low. > > We can approximate this

Re: srp_finalize(9): tsleep(9) -> tsleep_nsec(9)

2020-12-04 Thread Claudio Jeker
On Thu, Dec 03, 2020 at 10:05:30PM -0600, Scott Cheloha wrote: > Hi, > > srp_finalize(9) uses tsleep(9) to spin while it waits for the object's > refcount to reach zero. It blocks for up to 1 tick and then checks > the refecount again and again. > > We can just as easily do this with