Re: smtpd: includes cleanup

2021-05-27 Thread Eric Faurot
New diff with small tweaks. Eric. Index: aliases.c === RCS file: /cvs/src/usr.sbin/smtpd/aliases.c,v retrieving revision 1.78 diff -u -p -r1.78 aliases.c --- aliases.c 28 Apr 2020 21:46:43 - 1.78 +++ aliases.c 26 May

bgpd support for enhanced route refresh

2021-05-27 Thread Claudio Jeker
Implement RFC 7313 enhanced route refresh. While there also change when graceful restart EoR markers are sent. In short the graceful restart marker should only be sent initally. After that the End of Route Refresh message should be sent instead. Because of this track if an EoR marker was received

Re: libm: implicit double to long conversion warnings

2021-05-27 Thread Todd C . Miller
On Thu, 27 May 2021 16:50:16 +0200, Theo Buehler wrote: > The fix from FreeBSD silences both of them and looks correct to me. OK millert@ - todd

bgpd move deck chairs to port

2021-05-27 Thread Claudio Jeker
Just rename and move some functions used to get per-peer settings to the hopefully better names peer_has_as4byte() and peer_accept_no_as_set(). -- :wq Claudio Index: rde.c === RCS file: /cvs/src/usr.sbin/bgpd/rde.c,v retrieving

libm: implicit double to long conversion warnings

2021-05-27 Thread Theo Buehler
Ever since we updated to clang 10, there have been compiler warnings in libm about loss of precision when converting long and long long to double. /usr/src/lib/libm/src/s_lroundl.c:51:31: warning: implicit conversion from 'long' to 'double' c hanges value from 9223372036854775807 to

Re: smtpd: includes cleanup

2021-05-27 Thread Todd C . Miller
On Thu, 27 May 2021 13:14:30 +0200, Eric Faurot wrote: > New diff with small tweaks. It looks like you are relying on sys/queue.h being included implicitly. Since smtpd.h uses the TAILQ macros, should it include sys/queue.h itself? - todd

Re: smtpd: includes cleanup

2021-05-27 Thread Eric Faurot
On Thu, May 27, 2021 at 08:13:36AM -0600, Todd C. Miller wrote: > On Thu, 27 May 2021 13:14:30 +0200, Eric Faurot wrote: > > > New diff with small tweaks. > > It looks like you are relying on sys/queue.h being included implicitly. > Since smtpd.h uses the TAILQ macros, should it include

Driver for Cadence GEM

2021-05-27 Thread Visa Hankala
Here is an initial driver for Cadence GEM. Revisions of this Ethernet controller are found on various SoCs, including Xilinx Zynq-7000 and Zynq UltraScale+, and SiFive's HiFive Unleashed and Unmatched. I have tested the driver on Zynq-7000. Unfortunately, Zynq-7000 has a bug in its transmit UDP

Re: Driver for Cadence GEM

2021-05-27 Thread Mark Kettenis
> Date: Thu, 27 May 2021 16:30:17 + > From: Visa Hankala > > Here is an initial driver for Cadence GEM. Revisions of this Ethernet > controller are found on various SoCs, including Xilinx Zynq-7000 and > Zynq UltraScale+, and SiFive's HiFive Unleashed and Unmatched. > > I have tested the

Re: setitimer(2): don't round up it_value

2021-05-27 Thread Scott Cheloha
On Wed, May 19, 2021 at 10:32:55AM -0500, Scott Cheloha wrote: > On Wed, May 12, 2021 at 01:15:05PM -0500, Scott Cheloha wrote: > > > > [...] > > > > Paul de Weerd mentioned off-list that the initial expiration for an > > ITIMER_REAL timer is always at least one tick. I looked into it and > >

timeout.h: remove API documentation comment

2021-05-27 Thread Scott Cheloha
All of this information (and more) is in the timeout(9) manpage. Can I kill this comment? Index: timeout.h === RCS file: /cvs/src/sys/sys/timeout.h,v retrieving revision 1.40 diff -u -p -r1.40 timeout.h --- timeout.h 15 Oct 2020

Re: amd64: softintr_dispatch: remove kernel lock

2021-05-27 Thread Scott Cheloha
On Sun, May 23, 2021 at 09:05:24AM +, Visa Hankala wrote: > > [...] > > Here is a revised patch with a slightly altered approach. > > I have replaced the per-CPU queues with system-wide queues to make > the code simpler. I think that's fine to start with. We don't have many softintrs. We