FreeBSD/src 5e6e4f7sys/dev/bnxt/bnxt_en if_bnxt.c

bnxt: Fix BASE-T, 40G AOC, 1G-CX, autoneg and unknown media lists

This was broken in c63d67e137f3, the early returns prevent building the
media lists as expected.

The BASE-T parts of the patch were suggested by "cyric at mm.st", while I
am adding the additional 40G AOC, 1CX, autoneg and unknown PHY fixes
based on code inspection.  There may be additional work left here for
Broadcom but this is certainly better than the returns.

PR:             287395

Reported by:    mickael.maillot at gmail.com, cyric at mm.st
Tested by:      Einar Bjarni Halldórsson <einar at isnic.is>
MFC after:      1 week
DeltaFile
+7-7sys/dev/bnxt/bnxt_en/if_bnxt.c
+7-71 files

FreeBSD/src efcef5cshare/man/man4 Makefile

wlan_gcmp.4: hook up to the build

Sponsored by:   The FreeBSD Foundation
MFC after:      3 days
Fixes:          ca6d68a06317
DeltaFile
+1-0share/man/man4/Makefile
+1-01 files

FreeBSD/src 63e98e0share/man/man4 mlx.4

mlx.4: Improve HARDWARE

These are paralel scsi adapters, list what kind the hardware supports.

MFC after:              3 days
Fixes:                  e3307d05311e8c (mlx.4: Improve specificity)
Reported by:            kbowling
Reviewed by:            kbowling
Approved by:            mhorne (mentor, implicit)
Differential Revision:  https://reviews.freebsd.org/D50654
DeltaFile
+12-12share/man/man4/mlx.4
+12-121 files

FreeBSD/src 7faddeblibexec/rc rc.subr, libexec/rc/rc.d syscons moused

rc: Fix scripts that need pathname expansion

Reported by:    Kenneth Raplee
Differential Revision:  https://reviews.freebsd.org/D45855
DeltaFile
+20-4libexec/rc/rc.subr
+2-2libexec/rc/rc.d/syscons
+1-1libexec/rc/rc.d/moused
+23-73 files

FreeBSD/src 7458facsys/kern subr_pctrie.c

pctrie: simplify lookup_node

Change _pctrie_lookup_node to simplify it, avoiding lookup up the root
node when it's already been traversed.

Reviewed by:    alc
Differential Revision:  https://reviews.freebsd.org/D50750
DeltaFile
+12-13sys/kern/subr_pctrie.c
+12-131 files

FreeBSD/src f1dd507libexec/nuageinit nuageinit, libexec/nuageinit/tests nuageinit.sh

nuageinit: support "fqdn" and "hostname"
DeltaFile
+22-0libexec/nuageinit/tests/nuageinit.sh
+6-0libexec/nuageinit/nuageinit
+28-02 files

FreeBSD/src 1774711cddl/contrib/opensolaris/cmd/dtrace dtrace.1

dtrace.1: Mention providers in SEE ALSO

Reviewed by:    bnovkov, christos, markj
Approved by:    bnovkov (mentor), christos (mentor), markj (mentor)
MFC after:      1 week
Differential Revision:  https://reviews.freebsd.org/D50852
DeltaFile
+12-1cddl/contrib/opensolaris/cmd/dtrace/dtrace.1
+12-11 files

FreeBSD/src 8b399d6share/man/man4 Makefile

linuxkpi.4, linuxkpi_wlan.4: build and install on all architectures

Reported by:    bz
Fixes:  1563b306d19d linuxkpi.4, linuxkpi_wlan.4: connect to build
Sponsored by:   The FreeBSD Foundation
DeltaFile
+2-4share/man/man4/Makefile
+2-41 files

FreeBSD/src f3c25bfsys/net pfvar.h

pf: Fix the prototype for pf_match_rule()

Fixes:  fe96610ba943 ("pf: rework anchor handling to recurse")
DeltaFile
+1-1sys/net/pfvar.h
+1-11 files

FreeBSD/src 3b4bc5dsys/dev/gve gve.h

gve: Relax a static assertion

It's okay if MCLBYTES is larger than the default receive buffer size.

Fixes:  71702df61262 ("gve: Add support for 4k RX Buffers when using DQO queue formats")
DeltaFile
+1-1sys/dev/gve/gve.h
+1-11 files

FreeBSD/src c82662dsys/arm/arm pmap-v6.c

arm pmap: fix CTASSERT

Use the native spelling, PDR_SHIFT, instead of the x86 spelling,
PDRSHIFT, that used to be defined by vm_page.h.

Fixes: 330b17e1cf5c ("vm: remove pa_index from the machine-independent layer")
DeltaFile
+1-1sys/arm/arm/pmap-v6.c
+1-11 files

FreeBSD/src 49eabd4sys/netinet tcp_timewait.c

tcp: fix handling of TIME WAIT for local TCP connections

The sysctl-variable net.inet.tcp.nolocaltimewait should affect
TCP connections where the remote endpoint is on the local host and
not on the local area network.

Reported by:            cc
Reviewed by:            cc
MFC after:              1 week
Sponsored by:           Netflix, Inc.
Differential Revision:  https://reviews.freebsd.org/D50830
DeltaFile
+1-1sys/netinet/tcp_timewait.c
+1-11 files

FreeBSD/src f1ec3bcsys/fs/fuse fuse_node.c fuse_vfsops.c, tests/sys/fs/fusefs nfs.cc lookup.cc

fusefs: add more checks for buggy FUSE servers

* If a FUSE file system is NFS-exported (either by a kernel or userspace
  NFS server), then it must support FUSE_LOOKUP operations for ".".  But
  if the response reports a different nodeid than the request, that's
  very bad.  Fail the operation and warn the operator.

* In general, a FUSE file may have a distinct "nodeid" and "inode
  number".  But it the file system is NFS-exported (either by a kernel
  or userspace NFS server), then those two must match, because the NFS
  server will do VFS_VGET operations using the inode number.  If they
  don't match, warn the operator.

MFC after:      2 weeks
Sponsored by:   ConnectWise
Differential Revision: https://reviews.freebsd.org/D48471
DeltaFile
+106-0tests/sys/fs/fusefs/nfs.cc
+19-0sys/fs/fuse/fuse_node.c
+13-0sys/fs/fuse/fuse_vfsops.c
+7-0tests/sys/fs/fusefs/lookup.cc
+2-3tests/sys/fs/fusefs/last_local_modify.cc
+2-0sys/fs/fuse/fuse_ipc.h
+149-36 files

FreeBSD/src 16587f6sys/netinet6 udp6_usrreq.c

udp: fix local blackholing

The sysctl-variable net.inet.udp.blackhole_local should affect
UDP packets from an IPv6 address of the local host, not of a host on
the local area network.
Thanks to cc@ for pointing me to the issue.

Reviewed by:            cc
MFC after:              1 week
Sponsored by:           Netflix, Inc.
Differential Revision:  https://reviews.freebsd.org/D50829
DeltaFile
+1-1sys/netinet6/udp6_usrreq.c
+1-11 files

FreeBSD/src 1bdf1b8usr.sbin/config config.5

config.5: Document CONF_CFLAGS under 'makeoptions'

This variable serves to tweak CFLAGS from the kernel configuration file,
easing some custom kernel builds.  It was introduced by bde@ in 1999.

The description has been kept simple on purpose.  It does not completely
reflect reality as the build infrastructure actually appends variables
to CFLAGS after CONF_CFLAGS has been processed in a few cases.  However,
these cases do not collide with expected common uses of CONF_CFLAGS, so
have not been mentioned.

Reviewed by:    markj (older version)
MFC after:      3 days
Sponsored by:   The FreeBSD Foundation
Differential Revision:  https://reviews.freebsd.org/D50544
DeltaFile
+17-0usr.sbin/config/config.5
+17-01 files

FreeBSD/src de8fb1bsys/netinet tcp_input.c

tcp: fix local blackholing

The sysctl-variable net.inet.tcp.blackhole_local should affect
TCP segments from an IPv6 address of the local host, not of a host
on the local area network.
Thanks to cc@ for pointing me to the issue.

Reviewed by:            cc
MFC after:              1 week
Sponsored by:           Netflix, Inc.
Differential Revision:  https://reviews.freebsd.org/D50828
DeltaFile
+1-1sys/netinet/tcp_input.c
+1-11 files

FreeBSD/src 3353f39share/man/man4 wsp.4

wsp.4: fix style warnings. No content changes.
DeltaFile
+45-27share/man/man4/wsp.4
+45-271 files

FreeBSD/src b316830usr.bin/fstat fstat.c

fstat: identify kqueue, mqueue, and procdesc file descriptors

When displaying kqueue, mqueue, and procdesc file descriptors, identify
them as such.  There aren't any details, but it's better than a scary
warning like "unknown file type 15 for file 6 of pid 26393".

Sponsored by:   ConnectWise
Differential Revision: https://reviews.freebsd.org/D48706
MFC after:      2 weeks
DeltaFile
+12-0usr.bin/fstat/fstat.c
+12-01 files

FreeBSD/src 4e207e3sys/kern sys_generic.c, sys/sys exterrvar.h

exterr: make SET_ERRORX() macros an expression evaluating to the errno

And move the actual td_kexterr fill code into the function, saving some
text.

Suggested and reviewed by:      markj
Sponsored by:   The FreeBSD Foundation
Differential revision:  https://reviews.freebsd.org/D50836
DeltaFile
+7-15sys/sys/exterrvar.h
+20-0sys/kern/sys_generic.c
+27-152 files

FreeBSD/src 947bff6sys/vm vm_mmap.c

vm/vm_mmap.c: simplify code by using the SET_ERRNOX() values

to avoid duplicating the error values.

Reviewed by:    markj
Sponsored by:   The FreeBSD Foundation
Differential revision:  https://reviews.freebsd.org/D50836
DeltaFile
+32-47sys/vm/vm_mmap.c
+32-471 files

FreeBSD/src 3fd42dbcddl/usr.bin/ctfconvert ctfconvert.1

ctfconvert.1: Minor cleanup

Alphabetize option table to improve first glance access.
Markup semantics to differentiate them and add them to apropos.

MFC after:              3 days
Reviewed by:            Pau Amma <pauamma at gundo.com>
Approved by:            mhorne (mentor, implicit)
Differential Revision:  https://reviews.freebsd.org/D49883
DeltaFile
+23-17cddl/usr.bin/ctfconvert/ctfconvert.1
+23-171 files

FreeBSD/src 7b34c48share/man/man4 snd_hda.4

snd_hda.4: Improve HARDWARE for HW Relnotes

Rewrite the HARDWARE section to improve the hardware release notes.
Move the section to achieve the structure in mdoc(7). Tag SPDX.

MFC after:              3 days
Discussed with:         mav
Reviewed by:            christos
Approved by:            mhorne (mentor, implicit)
Differential Revision:  https://reviews.freebsd.org/D48503
DeltaFile
+13-12share/man/man4/snd_hda.4
+13-121 files

FreeBSD/src 9eb6cafshare/man/man5 src.conf.5, tools/build/options WITHOUT_MALLOC_PRODUCTION WITH_MALLOC_PRODUCTION

src.conf.5: Update MALLOC_PRODUCTION diag options

PR:             287502
Reviewed by:    kbowling, ziaee
Sponsored by:   The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D50834
DeltaFile
+7-2share/man/man5/src.conf.5
+6-1tools/build/options/WITHOUT_MALLOC_PRODUCTION
+6-1tools/build/options/WITH_MALLOC_PRODUCTION
+19-43 files

FreeBSD/src 5defdd5sys/fs/p9fs p9fs_vfsops.c

p9fs: Call VN_LOCK_ASHARE on new vnodes

We set MNTK_LOOKUP_SHARED on p9fs mounts, but disable shared locking of
vnodes (i.e., LK_SHARED requests are automatically translated to
LK_EXCLUSIVE.

Reviewed by:    kib
Sponsored by:   Klara, Inc.
Differential Revision:  https://reviews.freebsd.org/D50759
DeltaFile
+2-0sys/fs/p9fs/p9fs_vfsops.c
+2-01 files

FreeBSD/src 48a656csys/compat/freebsd32 freebsd32_misc.c, sys/compat/linux linux_ptrace.c

linux: Fix usage of ptrace(PT_GET_SC_ARGS)

The native handler expects the argument to be a pointer to an array of 8
syscall arguments, whereas the emulation provided an array that holds up
to 6.

Handle this by adding a new range of Linuxulator-specific ptrace
commands.  In particular, introduce PTLINUX_GET_SC_ARGS, which always
copies exactly six arguments.  This fixes the problem and removes the
hack of checking the target thread ABI to decide whether to apply a
Linux-specific quirk to PT_GET_SC_ARGS.

Reviewed by:    kib
MFC after:      2 weeks
Sponsored by:   Klara, Inc.
Differential Revision:  https://reviews.freebsd.org/D50758
DeltaFile
+21-6sys/kern/sys_process.c
+4-14sys/compat/linux/linux_ptrace.c
+8-0sys/sys/ptrace.h
+3-0sys/compat/freebsd32/freebsd32_misc.c
+36-204 files

FreeBSD/src 54d2737lib/libbe be.h be_access.c, sbin/bectl bectl_list.c

bectl: Use SPDX only license

bectl.8 had a truncated license without the required disclaimer.
Correct it consistently by converting all bectl licenses to SPDX form.

Approved by:            kevans
Approved by:            Kyle Kneitinger <kyle at kneit.in>
Approved by:            Wes Maag <wes at jwmaag.org>
Approved by:            mhorne (mentor, implicit)
Differential Revision:  https://reviews.freebsd.org/D49066
DeltaFile
+2-23sbin/bectl/bectl_list.c
+2-23lib/libbe/be.h
+2-23lib/libbe/be_access.c
+2-23lib/libbe/be_error.c
+2-23lib/libbe/be_impl.h
+2-23lib/libbe/be_info.c
+12-1386 files not shown
+22-26312 files

FreeBSD/src 71702dfshare/man/man4 gve.4, sys/dev/gve gve_main.c gve_rx_dqo.c

gve: Add support for 4k RX Buffers when using DQO queue formats

This change adds support for using 4K RX Buffers when using DQO queue
formats when a boot-time tunable flag is set to true by the user.
When this flag is enabled, the driver will use 4K RX Buffer size either
when HW LRO is enabled or mtu > 2048.

Signed-off-by: Vee Agarwal <veethebee at google.com>

Reviewed by:    markj, ziaee
MFC after:      2 weeks
Differential Revision:  https://reviews.freebsd.org/D50786
DeltaFile
+27-3sys/dev/gve/gve_main.c
+15-11sys/dev/gve/gve_rx_dqo.c
+20-0sys/dev/gve/gve.h
+6-2sys/dev/gve/gve_dqo.h
+8-0share/man/man4/gve.4
+4-1sys/dev/gve/gve_adminq.c
+80-171 files not shown
+84-177 files

FreeBSD/src 67c5db9lib/libsys clock_gettime.2

clock_gettime: Better markup

Markup CLOCK_REALTIME better.

Noticed by: kib
Fixes: 7b7ba7857ce8
Sponsored by:           Netflix
DeltaFile
+3-1lib/libsys/clock_gettime.2
+3-11 files

FreeBSD/src 330b17esys/amd64/amd64 pmap.c, sys/powerpc/aim mmu_oea64.c

vm: remove pa_index from the machine-independent layer

After the demise of vm_page_lock(), the only remaining uses of
pa_index() are in various pmap implementations.  In many cases, e.g.,
amd64, the pmap implementations already provided their own definitions,
often identical to the machine-independent one.  For those that didn't
provide one, this change adds it.

Reviewed by:    kib, markj
Differential Revision:  https://reviews.freebsd.org/D50823
DeltaFile
+0-8sys/vm/vm_page.h
+4-1sys/powerpc/aim/mmu_oea64.c
+2-1sys/riscv/riscv/pmap.c
+0-1sys/amd64/amd64/pmap.c
+6-114 files

FreeBSD/src 7747d82share/man/man4 mac_do.4

mac_do(4): Bump .Dd to reflect latest update

MFC with:       94828b338033 ("mac_do(4): Examples: Fix some descriptions and a typo")
Sponsored by:   The FreeBSD Foundation
DeltaFile
+1-1share/man/man4/mac_do.4
+1-11 files