svn commit: r357799 - head/sys/net

2020-02-12 Thread Hans Petter Selasky
Author: hselasky Date: Wed Feb 12 08:30:07 2020 New Revision: 357799 URL: https://svnweb.freebsd.org/changeset/base/357799 Log: Make sure the so-called end of receive interrupts don't starve in iflib. When the receive ring cannot be filled with mbufs, due to lack of memory, no more interr

svn commit: r357800 - head/sys/net

2020-02-12 Thread Hans Petter Selasky
Author: hselasky Date: Wed Feb 12 09:19:47 2020 New Revision: 357800 URL: https://svnweb.freebsd.org/changeset/base/357800 Log: Use NET_TASK_INIT() and NET_GROUPTASK_INIT() for drivers that process incoming packets in taskqueue context. This patch extends r357772. Tested by:y...@

svn commit: r357801 - in head/sys/dev/mlx5: . mlx5_core

2020-02-12 Thread Hans Petter Selasky
Author: hselasky Date: Wed Feb 12 09:58:19 2020 New Revision: 357801 URL: https://svnweb.freebsd.org/changeset/base/357801 Log: Add support for disabling and polling MSIX interrupts in mlx5core. MFC after:1 week Sponsored by: Mellanox Technologies Modified: head/sys/dev/mlx5/driver

svn commit: r357802 - head/sys/dev/mlx5/mlx5_en

2020-02-12 Thread Hans Petter Selasky
Author: hselasky Date: Wed Feb 12 10:03:25 2020 New Revision: 357802 URL: https://svnweb.freebsd.org/changeset/base/357802 Log: Add support for debugnet in mlx5en(4). MFC after:1 week Sponsored by: Mellanox Technologies Modified: head/sys/dev/mlx5/mlx5_en/mlx5_en_main.c Modified:

svn commit: r357803 - head/sys/kern

2020-02-12 Thread Mateusz Guzik
Author: mjg Date: Wed Feb 12 11:10:10 2020 New Revision: 357803 URL: https://svnweb.freebsd.org/changeset/base/357803 Log: epoch: convert zpcpu_get_cpua(.., curcpu) to zpcpu_get Modified: head/sys/kern/subr_epoch.c Modified: head/sys/kern/subr_epoch.c

svn commit: r357804 - in head/sys: kern riscv/include sys vm

2020-02-12 Thread Mateusz Guzik
Author: mjg Date: Wed Feb 12 11:11:22 2020 New Revision: 357804 URL: https://svnweb.freebsd.org/changeset/base/357804 Log: Store offset into zpcpu allocations in the per-cpu area. This shorten zpcpu_get and allows more optimizations. Reviewed by: jeff Differential Revision:h

svn commit: r357805 - head/sys/amd64/include

2020-02-12 Thread Mateusz Guzik
Author: mjg Date: Wed Feb 12 11:12:13 2020 New Revision: 357805 URL: https://svnweb.freebsd.org/changeset/base/357805 Log: amd64: store per-cpu allocations subtracted by __pcpu This eliminates a runtime subtraction from counter_u64_add. before: mov0x4f00ed(%rip),%rax# 0xf

svn commit: r357806 - head/sys/sys

2020-02-12 Thread Mateusz Guzik
Author: mjg Date: Wed Feb 12 11:14:23 2020 New Revision: 357806 URL: https://svnweb.freebsd.org/changeset/base/357806 Log: Dedup zpcpu assertions into one macro and guard the rest with #ifndef Sponsored by: The FreeBSD Foundation Modified: head/sys/sys/pcpu.h Modified: head/sys/sys/pcpu

svn commit: r357807 - head/sys/amd64/include

2020-02-12 Thread Mateusz Guzik
Author: mjg Date: Wed Feb 12 11:15:33 2020 New Revision: 357807 URL: https://svnweb.freebsd.org/changeset/base/357807 Log: amd64: provide custom zpcpu set/add/sub routines Note that clobbers are highly overzealous, can be cleaned up later. Modified: head/sys/amd64/include/counter.h hea

svn commit: r357808 - in head/sys: kern sys

2020-02-12 Thread Mateusz Guzik
Author: mjg Date: Wed Feb 12 11:16:55 2020 New Revision: 357808 URL: https://svnweb.freebsd.org/changeset/base/357808 Log: Add smp_rendezvous_cpus_retry This is a wrapper around smp_rendezvous_cpus which enables use of IPI handlers which can fail and require retrying. wait_func argum

svn commit: r357809 - head/sys/kern

2020-02-12 Thread Mateusz Guzik
Author: mjg Date: Wed Feb 12 11:17:18 2020 New Revision: 357809 URL: https://svnweb.freebsd.org/changeset/base/357809 Log: rms: use smp_rendezvous_cpus_retry instead of a hand-rolled variant Modified: head/sys/kern/kern_rmlock.c Modified: head/sys/kern/kern_rmlock.c =

svn commit: r357811 - head/sys/kern

2020-02-12 Thread Mateusz Guzik
Author: mjg Date: Wed Feb 12 11:18:12 2020 New Revision: 357811 URL: https://svnweb.freebsd.org/changeset/base/357811 Log: vfs: drop remaining zpcpu casts Modified: head/sys/kern/vfs_mount.c Modified: head/sys/kern/vfs_mount.c =

svn commit: r357810 - in head/sys: kern sys

2020-02-12 Thread Mateusz Guzik
Author: mjg Date: Wed Feb 12 11:17:45 2020 New Revision: 357810 URL: https://svnweb.freebsd.org/changeset/base/357810 Log: vfs: switch to smp_rendezvous_cpus_retry for vfs_op_thread_enter/exit In particular on amd64 this eliminates an atomic op in the common case, trading it for IPIs in t

svn commit: r357812 - head/sys/kern

2020-02-12 Thread Mateusz Guzik
Author: mjg Date: Wed Feb 12 11:19:07 2020 New Revision: 357812 URL: https://svnweb.freebsd.org/changeset/base/357812 Log: vfs: refactor vputx and add more comment Reviewed by: jeff (previous version) Tested by:pho (previous version) Differential Revision:https://reviews.fr

svn commit: r357813 - head/libexec/rtld-elf

2020-02-12 Thread Konstantin Belousov
Author: kib Date: Wed Feb 12 12:23:46 2020 New Revision: 357813 URL: https://svnweb.freebsd.org/changeset/base/357813 Log: Fix indent. Sponsored by: The FreeBSD Foundation MFC after:3 days Modified: head/libexec/rtld-elf/rtld.c Modified: head/libexec/rtld-elf/rtld.c ==

svn commit: r357814 - head/sys/netinet/tcp_stacks

2020-02-12 Thread Randall Stewart
Author: rrs Date: Wed Feb 12 12:36:55 2020 New Revision: 357814 URL: https://svnweb.freebsd.org/changeset/base/357814 Log: Now that all of the stats framework is in FreeBSD the bits that disabled stats when netflix-stats is not defined is no longer needed. Lets remove these bits so that we

svn commit: r357815 - head/sys/netinet/tcp_stacks

2020-02-12 Thread Randall Stewart
Author: rrs Date: Wed Feb 12 12:40:06 2020 New Revision: 357815 URL: https://svnweb.freebsd.org/changeset/base/357815 Log: Remove all trailing white space from the BBR/Rack fold. Bits left around by emacs (thanks emacs). Modified: head/sys/netinet/tcp_stacks/bbr.c head/sys/netinet/tcp_sta

svn commit: r357816 - head/sys/netinet

2020-02-12 Thread Randall Stewart
Author: rrs Date: Wed Feb 12 13:04:19 2020 New Revision: 357816 URL: https://svnweb.freebsd.org/changeset/base/357816 Log: This small fix makes it so we properly follow the RFC and only enable ECN when both the CWR and ECT bits our set within the SYN packet. Sponsored by: Netflix Inc.

svn commit: r357817 - head/sys/netinet

2020-02-12 Thread Randall Stewart
Author: rrs Date: Wed Feb 12 13:07:09 2020 New Revision: 357817 URL: https://svnweb.freebsd.org/changeset/base/357817 Log: Whitespace, remove from three files trailing white space (leftover presents from emacs). Sponsored by: Netflix Inc. Modified: head/sys/netinet/tcp_hpts.c head/sy

svn commit: r357818 - in head/sys/netinet: . cc

2020-02-12 Thread Randall Stewart
Author: rrs Date: Wed Feb 12 13:31:36 2020 New Revision: 357818 URL: https://svnweb.freebsd.org/changeset/base/357818 Log: White space cleanup -- remove trailing tab's or spaces from any line. Sponsored by: Netflix Inc. Modified: head/sys/netinet/cc/cc_cdg.c head/sys/netinet/cc/cc_dc

svn commit: r357820 - head/sys/riscv/riscv

2020-02-12 Thread Mitchell Horne
Author: mhorne Date: Wed Feb 12 13:58:37 2020 New Revision: 357820 URL: https://svnweb.freebsd.org/changeset/base/357820 Log: RISC-V: un-ifdef vm.kvm_size and vm.kvm_free Fix formatting and add CTLFLAG_MPSAFE. Reviewed by: markj Differential Revision:https://reviews.freebsd.

svn commit: r357821 - head/sys/riscv/riscv

2020-02-12 Thread Mitchell Horne
Author: mhorne Date: Wed Feb 12 14:06:02 2020 New Revision: 357821 URL: https://svnweb.freebsd.org/changeset/base/357821 Log: Implement vm.pmap.kernel_maps for RISC-V This is taken from the arm64 version, with the following simplifications: - Our current pmap implementation uses a 3-le

svn commit: r357823 - head/sys/netinet

2020-02-12 Thread Randall Stewart
Author: rrs Date: Wed Feb 12 15:26:56 2020 New Revision: 357823 URL: https://svnweb.freebsd.org/changeset/base/357823 Log: Lets get the real correct version.. gessh. I need more coffee evidently. Sponsored by: Netflix Modified: head/sys/netinet/tcp_ratelimit.c Modified: head/sys/netin

svn commit: r357826 - in head/contrib/elftoolchain: elfcopy libelftc

2020-02-12 Thread Ed Maste
Author: emaste Date: Wed Feb 12 15:59:59 2020 New Revision: 357826 URL: https://svnweb.freebsd.org/changeset/base/357826 Log: elfcopy: set ELF OS/ABI field when converting from binary PR: 228934 Submitted by: Tiger Gao Reviewed by: markj, jkoshy MFC after:2 weeks Spo

svn commit: r357827 - head/stand/common

2020-02-12 Thread Kyle Evans
Author: kevans Date: Wed Feb 12 16:09:01 2020 New Revision: 357827 URL: https://svnweb.freebsd.org/changeset/base/357827 Log: lualoader: disable autoboot on high-level interpreter errors If we hit an error at this level, we are almost certainly not in any kind of sane state where autoboot

svn commit: r357828 - head/stand/common

2020-02-12 Thread Kyle Evans
Author: kevans Date: Wed Feb 12 16:10:00 2020 New Revision: 357828 URL: https://svnweb.freebsd.org/changeset/base/357828 Log: interp_lua: fix bogus indentation, NFC Modified: head/stand/common/interp_lua.c Modified: head/stand/common/interp_lua.c =

svn commit: r357829 - head/sys/netinet

2020-02-12 Thread Michael Tuexen
Author: tuexen Date: Wed Feb 12 17:02:15 2020 New Revision: 357829 URL: https://svnweb.freebsd.org/changeset/base/357829 Log: Mark the socket as disconnected when freeing the association the first time. This issue was found by running syzkaller. MFC after:1 week Modified:

svn commit: r357830 - head/sys/netinet

2020-02-12 Thread Michael Tuexen
Author: tuexen Date: Wed Feb 12 17:05:10 2020 New Revision: 357830 URL: https://svnweb.freebsd.org/changeset/base/357830 Log: Don't panic under INVARIANTS when we can't allocate memory for storing a vtag in time wait. This issue was found by running syzkaller. MFC after:1 we

svn commit: r357831 - head/sys/kern

2020-02-12 Thread Ed Maste
Author: emaste Date: Wed Feb 12 17:12:26 2020 New Revision: 357831 URL: https://svnweb.freebsd.org/changeset/base/357831 Log: Allow fdatasync in capability mode fdatasync is essentially a subset of fsync (and may be exactly fsync, depending on filesystem and development effort) and operat

Re: svn commit: r357805 - head/sys/amd64/include

2020-02-12 Thread Gleb Smirnoff
On Wed, Feb 12, 2020 at 11:12:14AM +, Mateusz Guzik wrote: M> Author: mjg M> Date: Wed Feb 12 11:12:13 2020 M> New Revision: 357805 M> URL: https://svnweb.freebsd.org/changeset/base/357805 M> M> Log: M> amd64: store per-cpu allocations subtracted by __pcpu M> M> This eliminates a runtim

svn commit: r357832 - head/usr.sbin/rmt

2020-02-12 Thread Ed Maste
Author: emaste Date: Wed Feb 12 17:30:09 2020 New Revision: 357832 URL: https://svnweb.freebsd.org/changeset/base/357832 Log: tag /etc/rmt symlink with pkgbase package For historical reasons the "remote magtape protocol module" rmt gets invoked as /etc/rmt, which is a symlink to /usr/sbin

svn commit: r357833 - head/tests/sys/pjdfstest/tests

2020-02-12 Thread Ed Maste
Author: emaste Date: Wed Feb 12 17:37:32 2020 New Revision: 357833 URL: https://svnweb.freebsd.org/changeset/base/357833 Log: Tag pjdfstest symlink with pkgbase package As with the rest of pjdfstest, tag the symlink with package=tests. The tests -> . symlink seems a little strange but tha

Re: svn commit: r357805 - head/sys/amd64/include

2020-02-12 Thread Mateusz Guzik
On 2/12/20, Gleb Smirnoff wrote: > On Wed, Feb 12, 2020 at 11:12:14AM +, Mateusz Guzik wrote: > M> Author: mjg > M> Date: Wed Feb 12 11:12:13 2020 > M> New Revision: 357805 > M> URL: https://svnweb.freebsd.org/changeset/base/357805 > M> > M> Log: > M> amd64: store per-cpu allocations subtrac

svn commit: r357834 - in head: . share/mk

2020-02-12 Thread Brooks Davis
57833) +++ head/UPDATING Wed Feb 12 18:09:20 2020(r357834) @@ -26,6 +26,14 @@ NOTE TO PEOPLE WHO THINK THAT FreeBSD 13.x IS SLOW: disable the most expensive debugging functionality run "ln -s 'abort:false,junk:false' /etc/malloc.conf".) +20200212:

svn commit: r357835 - head/tests/sys/fs/fusefs

2020-02-12 Thread Alan Somers
Author: asomers Date: Wed Feb 12 18:11:07 2020 New Revision: 357835 URL: https://svnweb.freebsd.org/changeset/base/357835 Log: fusefs: fix some memory leaks in the tests. Oddly, most of these were not detected by Coverity. Reported by: Coverity (one of them, anyway) Coverity CID: 14

svn commit: r357838 - head/sys/kern

2020-02-12 Thread Ed Maste
Author: emaste Date: Wed Feb 12 18:59:00 2020 New Revision: 357838 URL: https://svnweb.freebsd.org/changeset/base/357838 Log: Allow getloginclass in capability mode As with e.g. getgroups and getlogin it allows querying current process credential state. Reported by: sig...@gmail.com

svn commit: r357839 - in head/sys: compat/freebsd32 kern

2020-02-12 Thread Ed Maste
Author: emaste Date: Wed Feb 12 19:05:10 2020 New Revision: 357839 URL: https://svnweb.freebsd.org/changeset/base/357839 Log: regen sysent after r357831, r357838 Capability mode changes allowing fdatasync and getloginclass. Sponsored by: The FreeBSD Foundation Modified: head/sys/com

svn commit: r357840 - head/sys/kern

2020-02-12 Thread Kyle Evans
Author: kevans Date: Wed Feb 12 19:06:34 2020 New Revision: 357840 URL: https://svnweb.freebsd.org/changeset/base/357840 Log: sys/kern sysent: re-add dependency on capabilities.conf r356868 inadvertently removed this, so changes to capabilities.conf were no longer considered for being out

svn commit: r357841 - head/usr.bin/diff

2020-02-12 Thread Mateusz Piotrowski
Author: 0mp (doc,ports committer) Date: Wed Feb 12 20:06:41 2020 New Revision: 357841 URL: https://svnweb.freebsd.org/changeset/base/357841 Log: diff.1: Fix style & document -y as extension to POSIX - Long options must be stylized with the Fl macro as well. Reviewed by: bapt Approve

svn commit: r357842 - head/sys/netipsec

2020-02-12 Thread Mateusz Guzik
Author: mjg Date: Wed Feb 12 20:18:29 2020 New Revision: 357842 URL: https://svnweb.freebsd.org/changeset/base/357842 Log: netipsec: fix a mismatched uma_zfree -> uma_zfree_pcpu PR: 244077 Reported by: lwhsu Fixes: r357805 ("amd64: store per-cpu allocations subtracted by __pc

Re: svn commit: r357833 - head/tests/sys/pjdfstest/tests

2020-02-12 Thread Enji Cooper
On Wed, Feb 12, 2020 at 9:37 AM Ed Maste wrote: > > Author: emaste > Date: Wed Feb 12 17:37:32 2020 > New Revision: 357833 > URL: https://svnweb.freebsd.org/changeset/base/357833 > > Log: > Tag pjdfstest symlink with pkgbase package > > As with the rest of pjdfstest, tag the symlink with packa

svn commit: r357843 - head/tests/sys/net/routing

2020-02-12 Thread Alexander V. Chernikov
Author: melifaro Date: Wed Feb 12 21:16:30 2020 New Revision: 357843 URL: https://svnweb.freebsd.org/changeset/base/357843 Log: * Fix flaking lle tests by filtering out non-relevant rtsock messages. * Consistently use RTM_DECLARE_ROOT_TEST() macro. * Temporarily remove iftype validation from

svn commit: r357844 - head/contrib/elftoolchain/addr2line

2020-02-12 Thread Ed Maste
Author: emaste Date: Wed Feb 12 21:52:10 2020 New Revision: 357844 URL: https://svnweb.freebsd.org/changeset/base/357844 Log: addr2line: Handle DW_AT_ranges in compile units Based on original submission by Marat Radchenko in ELF Tool Chain ticket #545, rebased and updated by Tiger Gao.

Re: svn commit: r357833 - head/tests/sys/pjdfstest/tests

2020-02-12 Thread Ed Maste
On Wed, 12 Feb 2020 at 15:34, Enji Cooper wrote: > > On Wed, Feb 12, 2020 at 9:37 AM Ed Maste wrote: > > > > Author: emaste > > Date: Wed Feb 12 17:37:32 2020 > > New Revision: 357833 > > URL: https://svnweb.freebsd.org/changeset/base/357833 > > > > Log: > > Tag pjdfstest symlink with pkgbase p

svn commit: r357845 - head/stand/efi/loader

2020-02-12 Thread Kyle Evans
Author: kevans Date: Wed Feb 12 22:29:08 2020 New Revision: 357845 URL: https://svnweb.freebsd.org/changeset/base/357845 Log: efiloader: don't execute hooks when setting currdev/loaddev We still need to set the hooks to prevent improper manipulations thereafter at the loader prompt, but a

svn commit: r357846 - head/usr.sbin/bhyve

2020-02-12 Thread Vincenzo Maffione
Author: vmaffione Date: Wed Feb 12 22:44:18 2020 New Revision: 357846 URL: https://svnweb.freebsd.org/changeset/base/357846 Log: bhyve: move virtio-net header processing to pci_virtio_net This patch cleans up the API between the net frontends (e1000, virtio-net) and the net backends (tap

svn commit: r357847 - head

2020-02-12 Thread Dimitry Andric
Author: dim Date: Wed Feb 12 23:54:38 2020 New Revision: 357847 URL: https://svnweb.freebsd.org/changeset/base/357847 Log: Fix typo introduced with r347534 (cap_sysctl additions). This ensures the old libcap_sysctl.so.1 gets cleaned up when running "make delete-old-libs". Modified: hea

svn commit: r357848 - head/sys/cam/scsi

2020-02-12 Thread Warner Losh
Author: imp Date: Thu Feb 13 01:23:32 2020 New Revision: 357848 URL: https://svnweb.freebsd.org/changeset/base/357848 Log: Export the current da flags as bitfield Export the current flags. They can be useful to other programs wanting to do special thigns for removable or similar devices.

svn commit: r357849 - head/sys/cam/scsi

2020-02-12 Thread Warner Losh
Author: imp Date: Thu Feb 13 01:23:44 2020 New Revision: 357849 URL: https://svnweb.freebsd.org/changeset/base/357849 Log: Convert rotating and unmapped_io to a DA flag Rotating and unmapped_io are really da flags. Convert them to a flag so it will be reported with the other flags for th

svn commit: r357850 - head/share/misc

2020-02-12 Thread Ryan Moeller
Author: freqlabs Date: Thu Feb 13 01:42:13 2020 New Revision: 357850 URL: https://svnweb.freebsd.org/changeset/base/357850 Log: Add myself (freqlabs) as a src committer Approved by: mav (mentor) MFC after:3 days Modified: head/share/misc/committers-src.dot Modified: head/share/mi

svn commit: r357853 - head/sys/cam/scsi

2020-02-12 Thread Warner Losh
Author: imp Date: Thu Feb 13 03:37:11 2020 New Revision: 357853 URL: https://svnweb.freebsd.org/changeset/base/357853 Log: Use INT instead of string for the ints. Because the string "I" was right, the old code appeared to work. This was a cut and paste error. Noticed by: rpokala@ Modifie