FreeBSD/src 0acab8bsys/dev/enic vnic_dev.c if_enic.c

enic(4): fix down/up, MTU changes and more

ifconfig down/up cycles was not working.  Fix that which is required
to support MTU changes.  Now doing ifconfig enic0 mtu 3000 for example
works.  If the MTU is changes in the VIC HW configuration, that is not
reflected in and the OS reports the default 1500.  I need to look at
that but changing it via ifconfig works.  So this is different then
what Linux does.

Change TX interrupt allocation to be in this driver.  Change the admin
interrupt count to 2.  This make multiple queues work but need to be
done as pairs so if the VIC has more TX or RX queues setup in the
VIC configuration it will use the lesser value.

While updating the TX interrupt also add support for devcmd2.

Enable checksum offloading.

PR:     282095
DeltaFile
+205-30sys/dev/enic/vnic_dev.c
+156-17sys/dev/enic/if_enic.c
+100-4sys/dev/enic/vnic_wq.c
+32-44sys/dev/enic/enic.h
+32-7sys/dev/enic/enic_txrx.c
+17-1sys/dev/enic/vnic_wq.h
+542-10311 files not shown
+559-13617 files

FreeBSD/src fb98fc4usr.sbin/fwget fwget.sh

fwget: Simplify logic

Summary:
Use log() to print messages that should be supressed when -q is in use.

No functional changes intended.

Differential Revision:  https://reviews.freebsd.org/D48393
Reviewed By:    manu
Sponsored by:   Rubicon Communications, LLC ("Netgate")
DeltaFile
+2-6usr.sbin/fwget/fwget.sh
+2-61 files

FreeBSD/src 55b343fsys/vm vm_pageout.c vm_pagequeue.h

vm_pageout: Add a chicken switch for multithreaded PQ_INACTIVE scanning

Right now we have the vm.pageout_cpus_per_thread tunable which controls
the number of threads to start up per CPU per NUMA domain, but after
booting, it's not possible to disable multi-threaded scanning.

There is at least one workload where this mechanism doesn't work well;
let's make it possible to disable it without a reboot, to simplify
troubleshooting.

Reviewed by:    dougm, kib
MFC after:      2 weeks
Sponsored by:   Klara, Inc.
Sponsored by:   Modirum MDPay
Differential Revision:  https://reviews.freebsd.org/D48377
DeltaFile
+7-2sys/vm/vm_pageout.c
+3-2sys/vm/vm_pagequeue.h
+1-0sys/vm/vm_page.c
+11-43 files

FreeBSD/src fe1165dsys/vm vm_pageout.c vm_page.c

vm_pageout: Make vmd_oom a bool

No functional change intended.

Reviewed by:    dougm, kib
MFC after:      1 week
Sponsored by:   Klara, Inc.
Sponsored by:   Modirum MDPay
Differential Revision:  https://reviews.freebsd.org/D48376
DeltaFile
+3-3sys/vm/vm_pageout.c
+1-1sys/vm/vm_page.c
+1-1sys/vm/vm_pagequeue.h
+5-53 files

FreeBSD/src 4a46ecesys/amd64/vmm vmm.c, sys/arm64/vmm vmm.c

vmm: Fix error handling in vmm_handler()

In commit a97f683fe3c4 I didn't add code to remove the vmmctl device
when vmm.ko is unloaded, so it would persist and prevent vmm.ko from
being re-loaded.

Extend vmmdev_cleanup() to destroy the vmmctl cdev.  Also call
vmmdev_cleanup() if vmm_init() fails.

Reviewed by:    corvink, andrew
Fixes:          a97f683fe3c4 ("vmm: Add a device file interface for creating and destroying VMs")
Differential Revision:  https://reviews.freebsd.org/D48269
DeltaFile
+19-15sys/dev/vmm/vmm_dev.c
+8-3sys/arm64/vmm/vmm.c
+8-3sys/riscv/vmm/vmm.c
+2-0sys/amd64/vmm/vmm.c
+37-214 files

FreeBSD/src 7c94d51tests/sys/aio aio_kqueue_test.c

aio_kqueue_test: Fix CID 1558429

Fix a Coverity error in the aio_kqueue_test that could theoretically
(but probably not realistically) cause overindexing an array.

Differential Revision: https://reviews.freebsd.org/D48328
Reviewed by: asomers, vangyzen
Sponsored by: Dell Technologies
DeltaFile
+2-0tests/sys/aio/aio_kqueue_test.c
+2-01 files

FreeBSD/src 19a6bc9usr.sbin/fwget fwget.sh

fwget: Silence log() when -q is used

Summary:
Silence log function when -q parameter is used to prevent undesired output

PR:             283939
Reviewed By:    manu
Differential Revision:  https://reviews.freebsd.org/D48391
Sponsored by:   Rubicon Communications, LLC ("Netgate")
DeltaFile
+3-1usr.sbin/fwget/fwget.sh
+3-11 files

FreeBSD/src 2f82bf3share/misc pci_vendors

pci_vendors: update to 2024.11.25
DeltaFile
+509-93share/misc/pci_vendors
+509-931 files

FreeBSD/src 4413d9fshare/misc usb_vendors

usb_vendors: update to 2024.12.04
DeltaFile
+3-3share/misc/usb_vendors
+3-31 files

FreeBSD/src beab8b1usr.bin/bintrans qp.c bintrans.1

bintrans(1): RFC2047 variant of quoted print

MFC After:      1 week
Reviewed by:    pstref
Differential Revision:  https://reviews.freebsd.org/D48381
DeltaFile
+23-9usr.bin/bintrans/qp.c
+2-0usr.bin/bintrans/bintrans.1
+25-92 files

FreeBSD/src a8d9bd3usr.bin/bintrans qp.c bintrans.1

bintrans(1): qp switch to getopt_long

In preparation for more arguments, switch bintrans qp argument parsing
to getopt_long, while here make the decodign argument being -d|--decode
for compatibility with base64 encoding/decoding

MFC After:      1 week
Reviewed by:    pstef
Differential Revision:  https://reviews.freebsd.org/D48380
DeltaFile
+34-27usr.bin/bintrans/qp.c
+2-2usr.bin/bintrans/bintrans.1
+36-292 files

FreeBSD/src ee23374stand/lua menu.lua

loader: Rework kernel menu section

With pkgbase we can have long kernel name, so create a new section
for the kernel name.
Do not show the "default" text, we already show the "1 of X" part at
the end of the line and the default kernel is always number 1 so it's a bit
redundant.

Differential Revision:  https://reviews.freebsd.org/D48354
Reviewed by:    imp, tsoome
Sponsored by:   Beckhoff Automation GmbH & Co. KG
DeltaFile
+14-10stand/lua/menu.lua
+14-101 files

FreeBSD/src 1b4e117stand/lua drawer.lua gfx-orb.lua

loader: Fix orb position

Fix the orb position to be aligned with the menu

Differential Revision:  https://reviews.freebsd.org/D48353
Reviewed by:    imp, tsoome
Sponsored by:   Beckhoff Automation GmbH & Co. KG
DeltaFile
+2-2stand/lua/drawer.lua
+1-1stand/lua/gfx-orb.lua
+1-1stand/lua/gfx-orbbw.lua
+4-43 files

FreeBSD/src 6584e5asbin/mount mount.c

mount(8): Avoid truncation when fstab-formatting unionfs mount info

When displaying unionfs mounts in fstab format (`mount -p`), mount(8)
currently uses strlcpy to remove the disposition prefix from the mount
name returned by getmntinfo(3).  But strlcpy, like strcpy before it,
does not guarantee correct behavior if the source and destination
buffers overlap.

Just offset the buffer and avoid the destructive copy in the first
place.

PR:             283420
Reviewed by:    imp (previous version), olce
Differential Revision: https://reviews.freebsd.org/D48177

(cherry picked from commit a314c60625af1829b7e12c3a4cedb74d7f69d074)
DeltaFile
+8-8sbin/mount/mount.c
+8-81 files

FreeBSD/src e7fbf52sys/netinet/tcp_stacks bbr.c

TCP BBR: remove dead code

No functional change intended.

Reviewed by:            Peter Lei, rrs (earlier version)
CID:                    1523802
MFC after:              1 week
Sponsored by:           Netflix, Inc.
Differential Revision:  https://reviews.freebsd.org/D48341
DeltaFile
+0-4sys/netinet/tcp_stacks/bbr.c
+0-41 files

FreeBSD/src 8e8f8d8usr.sbin/rpcbind rpcbind.c

rpcbind: remove extraneous check for nconf not being unix(4)

We are already inside an if block with exactly same predicate.
DeltaFile
+5-9usr.sbin/rpcbind/rpcbind.c
+5-91 files

FreeBSD/src 2834fd2sys/conf files options, sys/kgssapi gsstest.c

kgssapi: remove the debug module

Its build was disabled since original bulk check-in in 2008.  Today it
fails to compile due to multiple errors.  I also tried to build it on
stable/10, and that failed, too.  I guess it wasn't buildable since
initial check-in.
DeltaFile
+0-1,145sys/kgssapi/gsstest.c
+0-1sys/conf/files
+0-1sys/conf/options
+0-1,1473 files

FreeBSD/src ebb36fcsys/rpc svc_generic.c svc.h

rpc: remove svc_create(), it is not used
DeltaFile
+0-70sys/rpc/svc_generic.c
+0-13sys/rpc/svc.h
+0-832 files

FreeBSD/src 5aac61csys/rpc rpcb_clnt.c

rpc: delete disabled code from rpcb_clnt.c

The code was disabled since the initial bulk check-in from Isilon in 2008.
Its existence poisoned grep(1) results when one would try to learn what
are the actual RPC mechanisms that are used by the modern NFC client and
server.
DeltaFile
+1-1,141sys/rpc/rpcb_clnt.c
+1-1,1411 files

FreeBSD/src 3a0cdb2sys/rpc clnt.h svc.h

rpc: clean kernel RPC internal headers of non-kernel declarations

The files svc.h and clnt.h derive from the same files that live in
/usr/include, however there is nothing really shared between the kernel
and libc RPC implementations.  The kernel side files are not installed and
there is no reason to pollute them with the old definititions.
DeltaFile
+0-285sys/rpc/clnt.h
+0-273sys/rpc/svc.h
+0-5582 files

FreeBSD/src ec07af2sys/dev/rtwn if_rtwn.c if_rtwnvar.h, sys/dev/rtwn/rtl8812a/usb r12au_attach.c

rtwn: announce VHT support for RTL8812AU/RTL8821AU.

Although the transmit path doesn't yet support VHT rates (because
the rate control and rate representation in net80211 doesn't yet
know about VHT rates) the NIC will receive VHT frames but only
transmit HT frames.

Locally tested:

* RTL8812AU, STA mode

Differential Revision:  https://reviews.freebsd.org/D48103
DeltaFile
+23-0sys/dev/rtwn/if_rtwn.c
+16-3sys/dev/rtwn/rtl8812a/usb/r12au_attach.c
+14-3sys/dev/rtwn/rtl8821a/usb/r21au_attach.c
+2-0sys/dev/rtwn/if_rtwnvar.h
+55-64 files

FreeBSD/src 8218258sys/dev/rtwn/rtl8812a r12a_tx.c

rtwn: add VHT20/VHT40/VHT80 bandwidth configuration for transmit.

Add a separate function and path for VHT 20/40/80MHz bandwidth
transmission.

Differential Revision:  https://reviews.freebsd.org/D48102
DeltaFile
+38-3sys/dev/rtwn/rtl8812a/r12a_tx.c
+38-31 files

FreeBSD/src 912a056sys/net80211 ieee80211_vht.c ieee80211_vht.h

net80211: add helper functions for VHT transmit

* Add static helper functions for VHT TX for 20MHz, 40MHz and 80MHz.
* Add a public function to check if the given VHT width is available
  for transmit.

Differential Revision:  https://reviews.freebsd.org/D48101
DeltaFile
+137-0sys/net80211/ieee80211_vht.c
+4-0sys/net80211/ieee80211_vht.h
+141-02 files

FreeBSD/src 4c89d59sys/netinet/tcp_stacks rack.c

TCP RACK: don't log an uninitialized value

reduce is uninitialized, if the code path for logging is reached via
goto old_method;.

Reviewed by:            rrs, Peter Lei
CID:                    1557359
MFC after:              1 week
Sponsored by:           Netflix, Inc.
Differential Revision:  https://reviews.freebsd.org/D48346
DeltaFile
+3-2sys/netinet/tcp_stacks/rack.c
+3-21 files

FreeBSD/src 2c48a8fsys/dev/isp isp_freebsd.c isp_freebsd.h

isp: Fix abort issue introduced by previous commit

Aborting ATIO while its CTIOs are in progress makes impossible to
handle their completions, making them stuck forever.  Detect this
case by checking ctcnt counter and if so instead of aborting just
mark the ATIO as dead to block any new CTIOs.  It is not perfect
since the task id can not be reused for some more time, but not
as bad as the task stuck forever.

MFC after:      1 week
DeltaFile
+17-2sys/dev/isp/isp_freebsd.c
+2-1sys/dev/isp/isp_freebsd.h
+19-32 files

FreeBSD/src e6c96c7etc/mtree BSD.include.dist, include Makefile

Revert "isp: Fix abort issue introduced by previous commit"

This reverts commit 1f7c379c07168029694a9a33bc437b05cdee623e.

Leaked unintended changes.  I'm sorry.
DeltaFile
+2-17sys/dev/isp/isp_freebsd.c
+1-2sys/dev/isp/isp_freebsd.h
+0-2sys/conf/files.amd64
+0-2etc/mtree/BSD.include.dist
+1-1include/Makefile
+0-2sys/modules/Makefile
+4-261 files not shown
+4-277 files

FreeBSD/src 1f7c379etc/mtree BSD.include.dist, include Makefile

isp: Fix abort issue introduced by previous commit

Aborting ATIO while its CTIOs are in progress makes impossible to
handle their completions, making them stuck forever.  Detect this
case by checking ctcnt counter and if so instead of aborting just
mark the ATIO as dead to block any new CTIOs.  It is not perfect
since the task id can not be reused for some more time, but not
as bad as the task stuck forever.

MFC after:      1 week
DeltaFile
+17-2sys/dev/isp/isp_freebsd.c
+2-1sys/dev/isp/isp_freebsd.h
+2-0sys/modules/Makefile
+2-0etc/mtree/BSD.include.dist
+1-1include/Makefile
+2-0sys/conf/files.amd64
+26-41 files not shown
+27-47 files

FreeBSD/src cad1d13sys/dts freebsd-compatible.dts

dts: Bump the freebsd branding version to 6.12
DeltaFile
+1-1sys/dts/freebsd-compatible.dts
+1-11 files

FreeBSD/src 2bb0efbsys/compat/linuxkpi/common/include/linux jiffies.h timer.h, sys/compat/linuxkpi/common/src linux_compat.c

Revert: LinuxKPI: switch jiffies and timer->expire to unsigned long

There are possible problems when jiffies (ticks) which still are int
wrap around.  Also given this did not touch every single place some
checks may be broken now.

Reported by:    markj
This reverts commit fd27f86dd71b7ff1df6981297095b88d1d29652e.
DeltaFile
+14-14sys/compat/linuxkpi/common/include/linux/jiffies.h
+2-2sys/compat/linuxkpi/common/include/linux/timer.h
+1-1sys/compat/linuxkpi/common/src/linux_compat.c
+17-173 files

FreeBSD/src 7f8f120lib/libmagic config.h

libmagic: Unbreak for older FreeBSD releases.

byteswap.h is introduced in FreeBSD 13.2 but was not available in
earlier versions.  In order to support upgrading from an earlier
FreeBSD release we would need to tell the build system that fact.

PR:             bin/273736
Reported by:    philip
MFC after:      3 days
DeltaFile
+5-0lib/libmagic/config.h
+5-01 files