FreeBSD/src 9e54973sys/dev/ice if_ice_iflib.c virtchnl_inline_ipsec.h

ice(4): Update to 1.39.13-k

- Adds mirror interface functionality
- Remove unused virtchnl headers

Signed-off-by: Eric Joyner <erj at FreeBSD.org>

MFC-with:       768329961dc0c041f7647f1c4549944a2ca168aa
MFC after:      3 days
Sponsored by:   Intel Corporation
Tested by:      jeffrey.e.pieper at intel.com
Differential Revision:  https://reviews.freebsd.org/D44004
DeltaFile
+1,251-15sys/dev/ice/if_ice_iflib.c
+0-594sys/dev/ice/virtchnl_inline_ipsec.h
+321-39sys/dev/ice/ice_lib.c
+322-30sys/dev/ice/ice_iflib_txrx.c
+35-36sys/dev/ice/ice_flow.c
+30-13sys/dev/ice/ice_common.c
+1,959-72721 files not shown
+2,134-78427 files

FreeBSD/src 015f8ccsys/dev/ice ice_iflib_recovery_txrx.c ice_iflib_sysctls.h

ice(4): Update copyright year to 2024

Signed-off-by: Eric Joyner <erj at FreeBSD.org>

MFC after:      3 days
Sponsored by:   Intel Corporation
Differential Revision:  https://reviews.freebsd.org/D44003
DeltaFile
+1-1sys/dev/ice/ice_iflib_recovery_txrx.c
+1-1sys/dev/ice/ice_iflib_sysctls.h
+1-1sys/dev/ice/ice_iflib_txrx.c
+1-1sys/dev/ice/ice_lan_tx_rx.h
+1-1sys/dev/ice/ice_lib.c
+1-1sys/dev/ice/ice_lib.h
+6-652 files not shown
+58-5858 files

FreeBSD/src ed34a6bsys/net iflib.c iflib.h

iflib: Add subinterface interrupt allocation function

The ice(4) driver will add the ability to create extra interfaces
that hang off of the base interface; to do that the driver requires
a method for the subinterface to request hardware interrupt resources
from the base interface.

Signed-off-by: Eric Joyner <erj at FreeBSD.org>

MFC after:      3 days
Sponsored by:   Intel Corporation
Differential Revision:  https://reviews.freebsd.org/D39930
DeltaFile
+77-2sys/net/iflib.c
+12-0sys/net/iflib.h
+89-22 files

FreeBSD/src 3c7da27sys/net iflib.c iflib.h

iflib: Add sysctl to request extra MSIX vectors on driver load

Intended to be used with upcoming feature to add sub-interfaces, since
those new interfaces will be dynamically created and will need to have
spare MSI-X interrupts already allocated for them on driver load.

This sysctl is marked as a tunable since it will need to be set before
the driver is loaded since MSI-X interrupt allocation and setup is
done during the attach process.

Signed-off-by: Eric Joyner <erj at FreeBSD.org>

MFC after:      3 days
Sponsored by:   Intel Corporation
Differential Revision:  https://reviews.freebsd.org/D41326
DeltaFile
+14-0sys/net/iflib.c
+1-0sys/net/iflib.h
+15-02 files

FreeBSD/src f697b9dshare/mk sys.dirdeps.mk

Update sys.dirdeps.mk set default DEP_*

Even at level 0 it is handy to default DEP_*
used by Makefile.depend* to aid the first include if
in a leaf dir.

Reviewed by: stevek
DeltaFile
+7-8share/mk/sys.dirdeps.mk
+7-81 files

FreeBSD/src 1b82d42sys/dev/sound/pcm sound.h

sound: Remove obsolete DV_F_* flags

The ISA sound drivers that used them are retired.

Last reference of DV_F_DRQ_MASK and DV_F_DUAL_DMA:
716924cb4832ea0a440daf09913a06f3166f243e ("Retire snd_sbc ISA sound card
driver")

Last reference of DV_F_DEV_MASK and DV_F_DEV_SHIFT:
5126e5eeeb5e07ceef3c809452a8c9f508b2d4d1 ("Retire snd_mss ISA sound card
driver")

Sponsored by:   The FreeBSD Foundation
MFC after:      1 week
Reviewed by:    markj, emaste
Differential Revision:  https://reviews.freebsd.org/D44858
DeltaFile
+0-8sys/dev/sound/pcm/sound.h
+0-81 files

FreeBSD/src 4d2be7bsys/dev/sound/pcm sound.c sound.h

sound: Get rid of snddev_info->devcount

snddev_info->devcount keeps track of the total number of channels for a
given device. However, it is redundant to have it, since it is only used
in sound_oss_sysinfo() to populate the "numaudios" field, and we also
keep track of the channel counts in the playcount, pvchancount, reccount
and rvchancount fields anyway. We can simply sum those fields together
instead of updating a separate variable upon every channel
addition/deletion.

Sponsored by:   The FreeBSD Foundation
MFC after:      1 week
Reviewed by:    markj
Differential Revision:  https://reviews.freebsd.org/D44852
DeltaFile
+1-6sys/dev/sound/pcm/sound.c
+4-1sys/dev/sound/pcm/sound.h
+5-72 files

FreeBSD/src a44c45csys/dev/sound/pcm dsp.c

sound: Simplify unit fetching in dsp_oss_audioinfo()

"i" keeps the value of the current unit, so we do not have to call
PCMUNIT() and device_get_unit() to fetch it.

In the mixer case, I think it is more correct to do it like this, since
mixer and DSP device units have a 1-1 relationship (i.e the mixer unit
is always the same as the corresponding DSP device one) and that way we
can make it more clear.

Sponsored by:   The FreeBSD Foundation
MFC after:      1 week
Reviewed by:    markj
Differential Revision:  https://reviews.freebsd.org/D44855
DeltaFile
+6-7sys/dev/sound/pcm/dsp.c
+6-71 files

FreeBSD/src 17969e6sys/dev/sound/pcm channel.c channel.h

sound: Remove obsolete chn_setvolume()

It is marked as obsolete and there are no consumers of it anymore.

Sponsored by:   The FreeBSD Foundation
MFC after:      1 week
Reviewed by:    markj, emaste
Differential Revision:  https://reviews.freebsd.org/D44853
DeltaFile
+0-13sys/dev/sound/pcm/channel.c
+0-1sys/dev/sound/pcm/channel.h
+0-142 files

FreeBSD/src 8b97dcesys/dev/sound/pci emu10kx.c, sys/dev/sound/pcm mixer.c sound.h

sound: Remove PCMMINOR()

It's a NO-OP.

Sponsored by:   The FreeBSD Foundation
MFC after:      1 week
Reviewed by:    markj, emaste
Differential Revision:  https://reviews.freebsd.org/D44854
DeltaFile
+2-2sys/dev/sound/pcm/mixer.c
+0-3sys/dev/sound/pcm/sound.h
+1-1sys/dev/sound/pci/emu10kx.c
+3-63 files

FreeBSD/src 41ab202sys/dev/sound/pcm mixer.c

sound: Call device_get_name() and device_get_unit() only once in mixer_init()

No functional change intended.

Sponsored by:   The FreeBSD Foundation
MFC after:      1 week
Reviewed by:    markj, emaste
Differential Revision:  https://reviews.freebsd.org/D44840
DeltaFile
+7-5sys/dev/sound/pcm/mixer.c
+7-51 files

FreeBSD/src d0032e6sys/dev/sound/pcm sound.c

sound: Be more verbose with virtual channel descriptions

Non-virtual channel description denote "play" or "record", so do the
same for virtual ones as well.

Sponsored by:   The FreeBSD Foundation
MFC after:      1 week
Reviewed by:    markj, emaste
Differential Revision:  https://reviews.freebsd.org/D44839
DeltaFile
+2-2sys/dev/sound/pcm/sound.c
+2-21 files

FreeBSD/src 806bd5eshare/misc organization.dot

organization.dot: Fix typos

MFC after:      3 days
DeltaFile
+2-2share/misc/organization.dot
+2-21 files

FreeBSD/src 1941914sys/netinet/tcp_stacks rack.c

tcp rack: improve BBR_LOG_CWND event

Fix a typo, which resulted in missing r_ctl.gate_to_fs in the BBLog
event.

Reported by:            Coverity Scan
CID:                    1540024
Reviewed by:            rrs, rscheff
Sponsored by:           Netflix, Inc.
Differential Revision:  https://reviews.freebsd.org/D44648
DeltaFile
+1-1sys/netinet/tcp_stacks/rack.c
+1-11 files

FreeBSD/src c9cd686sys/netinet tcp_input.c, sys/netinet/tcp_stacks bbr.c rack.c

tcp: drop data received after a FIN has been processed

RFC 9293 describes the handling of data in the CLOSE-WAIT, CLOSING,
LAST-ACK, and TIME-WAIT states:
This should not occur since a FIN has been received from the remote
side. Ignore the segment text.
Therefore, implement this handling.

Reviewed by:            rrs, rscheff
MFC after:              3 days
Sponsored by:           Netflix, Inc.
Differential Revision:  https://reviews.freebsd.org/D44746
DeltaFile
+0-18sys/netinet/tcp_stacks/bbr.c
+0-14sys/netinet/tcp_stacks/rack.c
+4-2sys/netinet/tcp_input.c
+4-343 files

FreeBSD/src 8ee68absys/dev/sym sym_hipd.c

Fix "set but not used" for the sym driver.

Sponsored by: Rubicon Communications, LLC ("Netgate")

(cherry picked from commit 5045cb8f18f9f79354f93174ba7f9fd2f7ea6994)
DeltaFile
+1-2sys/dev/sym/sym_hipd.c
+1-21 files

FreeBSD/src 3d1d7c2sys/net/route fib_algo.c

fib_algo(4): Lower level of algorithm switching messages to LOG_INFO

Otherwise, with the default flm_debug_level of LOG_NOTICE, it's rather
easy to trigger debug messages such as:
[fib_algo] inet.0 (bsearch4#18) rebuild_fd_flm: switching algo to
radix4_lockless

Also, the "severity" of these events generally only justifies LOG_INFO
and not LOG_NOTICE.

Reviewed by:    melifaro

(cherry picked from commit ed81a15517b8a8f587fd7282c3690513bb798242)
DeltaFile
+1-1sys/net/route/fib_algo.c
+1-11 files

FreeBSD/src 954bb76sys/net/route fib_algo.c

fib_algo(4): Lower level of algorithm switching messages to LOG_INFO

Otherwise, with the default flm_debug_level of LOG_NOTICE, it's rather
easy to trigger debug messages such as:
[fib_algo] inet.0 (bsearch4#18) rebuild_fd_flm: switching algo to
radix4_lockless

Also, the "severity" of these events generally only justifies LOG_INFO
and not LOG_NOTICE.

Reviewed by:    melifaro

(cherry picked from commit ed81a15517b8a8f587fd7282c3690513bb798242)
DeltaFile
+1-1sys/net/route/fib_algo.c
+1-11 files

FreeBSD/src 67783db. CONTRIBUTING.md

CONTRIBUTING: request only one submission type per change

We have some instances of contributors opening a GitHub pull request and
a Phabricator review for the same change, which divides or duplicates
review effort.

Reviewed by:    markj
Sponsored by:   The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D44856
DeltaFile
+4-0CONTRIBUTING.md
+4-01 files

FreeBSD/src ede4563. CONTRIBUTING.md

CONTRIBUTING: mention sys/crypto as another "contrib" directory

Reviewed by:    imp
Sponsored by:   The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D44857
DeltaFile
+8-8CONTRIBUTING.md
+8-81 files

FreeBSD/src 2fd73b7share/mk bsd.cpu.mk

share/mk/bsd.cpu.mk: add F16C feature for i386 and amd64 architectures

As discussed in bug 278417, some ports require the F16C instruction set
to compile, but there is no way yet to detect whether the currently
chosen CPUTYPE supports this feature.

Add the feature to the MACHINE_CPU variable, for each processor that
supports it. The list of processors was extracted from clang 18's -dM
output, filtered on the __F16C__ define.

PR:             278417
Reviewed by:    brooks, emaste
MFC after:      3 days
Differential Revision: https://reviews.freebsd.org/D44848
DeltaFile
+24-18share/mk/bsd.cpu.mk
+24-181 files

FreeBSD/src 7f1fc5dsbin/mdmfs mdmfs.8

mount_mfs.8: remove self-reference

Change .Xr instances to .Nm, which quiets several mandoc warnings.

Reviewed by:    mhorne
MFC after:      3 days
Pull Request:   https://github.com/freebsd/freebsd-src/pull/1135

(cherry picked from commit 2ebc7806a1e4f4cd82a21a123ee5078ca6c4b113)
DeltaFile
+5-5sbin/mdmfs/mdmfs.8
+5-51 files

FreeBSD/src ac3bd59share/man/man4 cfumass.4

cfumass.4: remove self-reference

Change .Xr to .Nm, which quiets a mandoc warning.

Reviewed by:    mhorne
MFC after:      3 days
Pull Request:   https://github.com/freebsd/freebsd-src/pull/1135

(cherry picked from commit f8ce29b63181912e01625addb47168e987d9bbed)
DeltaFile
+1-1share/man/man4/cfumass.4
+1-11 files

FreeBSD/src c8aac78share/man/man3 assert.3

assert.3: Update manual page based on mandoc -Tlint

Execute the mandoc -Tlint option on assert(3). This results in two areas
of updates:

Remove invalid Rs block
Remove invalid Re block

Reviewed by:    mhorne
MFC after:      3 days
Pull Request:   https://github.com/freebsd/freebsd-src/pull/1132

(cherry picked from commit 3f72f36cf2f92e00a248f729d50803232ff4cef8)
DeltaFile
+0-4share/man/man3/assert.3
+0-41 files

FreeBSD/src d16abffshare/man/man9 bhnd_erom.9

bhnd_erom.9: remove self-reference

Change .Xr to .Fn, which quiets a mandoc warning.

Reviewed by:    mhorne
MFC after:      3 days
Pull Request:   https://github.com/freebsd/freebsd-src/pull/1135

(cherry picked from commit 81727a3dd38287d437d1e7e416dd89107a706e55)
DeltaFile
+1-1share/man/man9/bhnd_erom.9
+1-11 files

FreeBSD/src de436a4share/man/man9 device_add_child.9

device_add_child.9: remove self-reference

Change .Xr to .Nm, which quiets a mandoc warning

Reviewed by:    mhorne
MFC after:      3 days
Pull Request:   https://github.com/freebsd/freebsd-src/pull/1135

(cherry picked from commit f9ea7b6e8253273ebb1023c4380a305e6d3cf02b)
DeltaFile
+2-2share/man/man9/device_add_child.9
+2-21 files

FreeBSD/src ac4ddd8lib/libc/sys open.2

open.2: remove self-reference

Change .Xr reference to .Fn, which quiets a mandoc warning.

Reviewed by:    mhorne
MFC after:      3 days
Pull Request:   https://github.com/freebsd/freebsd-src/pull/1135

(cherry picked from commit d3de1bd429bc51fbbcb37fadaf2581461edf848b)
DeltaFile
+1-1lib/libc/sys/open.2
+1-11 files

FreeBSD/src 0c62a06sys/sys kassert.h

kassert.h: update MPASS definition commentary

We now have a detailed man page describing both MPASS and KASSERT. Give
a warning that careless use of MPASS can result in inadequate assertion
messages, and point to the MPASS(9) page which describes this.

While here add a comment above the KASSERT definitions pointing to the
man page.

Suggested by:   bz
Reviewed by:    emaste
MFC after:      1 week
Sponsored by:   The FreeBSD Foundation
Differential Revision:  https://reviews.freebsd.org/D44438

(cherry picked from commit 36de8bb226671ef9fe373d8d95f77cdb76157738)
DeltaFile
+8-2sys/sys/kassert.h
+8-21 files

FreeBSD/src e9d06e8share/man/man9 KASSERT.9

KASSERT(9): describe history of MPASS

The macro originates from BSD/OS, with a different etymology than what
is presented. Add a brief HISTORY section to capture this.

Reviewed by:    emaste
MFC after:      1 week
Sponsored by:   The FreeBSD Foundation
Differential Revision:  https://reviews.freebsd.org/D44439

(cherry picked from commit 5d956e11ed3713ff769d51b71f7b4ee6ce0085fe)
DeltaFile
+9-0share/man/man9/KASSERT.9
+9-01 files

FreeBSD/src 929d8efshare/man/man9 KASSERT.9

KASSERT(9): add assertion message guidelines

Add some text describing how to create useful assertion messages.
Improve and add to the EXAMPLES.

See the discussion prompting this on -hackers:
https://mail-archive.freebsd.org/cgi/mid.cgi?57o4rnnq-013s-3nsn-59n5-4ssn1pq81s94

Reviewed by:    emaste
Discussed with: imp, bz
MFC after:      1 week
Sponsored by:   The FreeBSD Foundation
Differential Revision:  https://reviews.freebsd.org/D44434

(cherry picked from commit 83a426d13a6a384e63e75d8252c03dd40af3817e)
DeltaFile
+67-5share/man/man9/KASSERT.9
+67-51 files