Commit Graph

304985 Commits

Author SHA1 Message Date
Andrew Gallatin e07b4a2e9b e1000: use newly exposed RSS hash key API rather than ad-hoc hashing
Differential Revision:	https://reviews.freebsd.org/D53097
Reviewed by: kbowling
Sponsored by: Netflix
2025-11-22 09:29:33 -05:00
Andrew Gallatin 012ecdde3a ice: use newly exposed RSS hash key API rather than ad-hoc hashing
Differential Revision:	https://reviews.freebsd.org/D53096
Sponsored by: Netflix
2025-11-22 09:29:33 -05:00
Andrew Gallatin d2790dc77e iavf: use newly exposed RSS hash key API rather than ad-hoc hashing
Differential Revision:	https://reviews.freebsd.org/D53095
Sponsored by: Netflix
2025-11-22 09:29:33 -05:00
Andrew Gallatin dd615b57df ixl: use newly exposed RSS hash key API rather than ad-hoc hashing
Differential Revision:	https://reviews.freebsd.org/D53094
Sponsored by: Netflix
2025-11-22 09:29:32 -05:00
Andrew Gallatin 5a14756a13 ixgbe: Use newly exposed RSS hash API rather than ad-hoc hashing
Differential Revision:	https://reviews.freebsd.org/D53093
Reviewed by: kbowling
Sponsored by: Netflix
2025-11-22 09:29:32 -05:00
Andrew Gallatin d381a6b4a5 cxgbe: use newly exposed RSS hash key API rather than ad-hoc hashing
Differential Revision:	https://reviews.freebsd.org/D53092
Reviewed by: np (outside of differential)
Sponsored by: Netflix
2025-11-22 09:29:32 -05:00
Andrew Gallatin d9c55b2e8c rss: Enable portions of RSS globally to enable symmetric hashing
We use the fact that all NICs that support hashing are using the
same hash algorithm and hash key to enable symmetic hashing in
TCP, where a software version of the same hash is used to
establish hashes on outgoing connections.

Sponsored by: Netflix
Reviewed by: adrian, zlei (both early version)
Differential Revision:	https://reviews.freebsd.org/D53089
2025-11-22 09:29:31 -05:00
John Baldwin 46d05a49a1 loader.efi.8: Minor formatting nits
- Add several missing .Pp after lists and literal blocks.

- Fix the column widths for the console table and use a shorter indent
  so that it doesn't wrap on an 80-col display.

Reviewed by:	imp
Differential Revision:	https://reviews.freebsd.org/D53866
2025-11-22 08:10:20 -05:00
Dag-Erling Smørgrav fe836c5012 cp: Fix copying the root directory
When the source of the copy operation is the root directory, we should
neither append it to the destination path on FTS_D nor trim it back off
on FTS_DP.

PR:		291132
MFC after:	3 days
Fixes:          82fc0d09e8 ("cp: Partly restore symlink folllowing.")
Reviewed by:	markj
Differential Revision:	https://reviews.freebsd.org/D53863
2025-11-22 13:11:59 +01:00
Emmanuel Vadot 833e5d42ab Import device-tree files from Linux 6.17 2025-11-22 12:29:29 +01:00
Emmanuel Vadot d50fbf3559 Import device-tree files from Linux 6.17 2025-11-22 12:29:08 +01:00
Emmanuel Vadot ae5de77ed7 Import device-tree files from Linux 6.16 2025-11-22 12:28:38 +01:00
Emmanuel Vadot b8aada787c Import device-tree files from Linux 6.16 2025-11-22 12:27:17 +01:00
Emmanuel Vadot 8ccc0d235c Import device-tree files from Linux 6.15 2025-11-22 12:26:43 +01:00
Emmanuel Vadot 3721eb5a72 Import device-tree files from Linux 6.15 2025-11-22 12:22:22 +01:00
Emmanuel Vadot 2846c90520 Import device-tree files from Linux 6.14 2025-11-22 12:21:01 +01:00
Emmanuel Vadot 08b3ef957d Import device-tree files from Linux 6.14 2025-11-22 12:20:20 +01:00
Emmanuel Vadot 5f62a964e9 Import device-tree files from Linux 6.13 2025-11-22 12:19:36 +01:00
Emmanuel Vadot 2aa9fc59ab Import device-tree files from Linux 6.13 2025-11-22 12:14:46 +01:00
Peter Holm aa2468493e stress2: syzkaller87 fixed by ebc17879f0 2025-11-22 10:20:05 +01:00
Peter Holm c75ce77a26 stress2: Added a regression test 2025-11-22 10:19:28 +01:00
Gleb Smirnoff e20e5724e6 bpf: remove DDB code
With modern debugging tools it isn't useful at all and is just a
maintenance burden.
2025-11-21 16:04:52 -08:00
Gleb Smirnoff fd91012ebf bpf: leave only locked version of bpf_detachd()
The unlocked one is used only once.  No functional change.
2025-11-21 14:50:44 -08:00
Gleb Smirnoff ff3ccf6f1a bpf: refactor buffer pre-allocation for BIOCSETIF
This basically refactors 4f42daa4a3 to use less indentation and
variables.  The code is still not race proof.
2025-11-21 14:43:47 -08:00
Gleb Smirnoff 5469a3493b bpf: remove dead code
Should have gone together with 9738277b5c.
2025-11-21 14:43:47 -08:00
Gleb Smirnoff 88b38d43f5 ipfw: add extra parenthesis around ACTION_PTR() macro
This allows to immediately dereference ipfw_insn member.
2025-11-21 14:43:47 -08:00
Gleb Smirnoff fd0296154d mbuf: allow const pointer for m_rcvif() 2025-11-21 14:43:47 -08:00
Gleb Smirnoff 1ea3eda3d0 tests/net: add some bpf(4) tests
A test helper program pcap-test allows to capture, inject and compare.
Build a simple test case on top of it.  More test cases can be easily
constructed.
2025-11-21 14:43:47 -08:00
Alexander Ziaee a8740ba860 vt.4: Document increasing scrollback size
MFC:			immediately as 2 llms say this is impossible
Reviewed by:		adrian, emaste
Differential Revision:	https://reviews.freebsd.org/D53860
2025-11-21 12:41:02 -05:00
Christos Margiolis 9d18115ca0 sound: Retire snd_mtx* wrappers
Do not create mutexes with snd_mtxcreate(). It doesn't provide any
value, plus it first allocates the mutex with malloc(9). Allocate
mutexes in the stack and use mtx_* functions directly instead of the
snd_mtx* wrappers.

Sponsored by:	The FreeBSD Foundation
MFC after:	1 week
Reviewed by:	kib, markj
Differential Revision:	https://reviews.freebsd.org/D53855
2025-11-21 17:14:47 +01:00
Christos Margiolis e254ef87a3 sound: Merge chn_intr() with chn_intr_locked()
There is no scenario where chn_intr() is called with the channel lock
already held.

No functional change intended.

Sponsored by:	The FreeBSD Foundation
MFC after:	1 week
Reviewed by:	kib, markj
Differential Revision:	https://reviews.freebsd.org/D53854
2025-11-21 17:14:47 +01:00
Christos Margiolis 3107b952f5 sound: Merge PCM_ALIVE() with PCM_REGISTERED()
PCM_ALIVE() is used only in pcm_unregister(), but it does not hurt to
use PCM_REGISTERED(), which uses PCM_ALIVE() internally. In fact, it's
more robust this way.

Sponsored by:	The FreeBSD Foundation
MFC after:	1 week
2025-11-21 17:14:47 +01:00
Christos Margiolis 4e8eb77880 sound: Clean up midi/ includes
Sponsored by:	The FreeBSD Foundation
MFC after:	1 week
Differential Revision:	https://reviews.freebsd.org/D53841
2025-11-21 17:14:41 +01:00
Christos Margiolis b4c32d67d4 sound: Simplify logic in dsp_io_ops()
Use CHN_LOCK()/CHN_UNLOCK() directly, instead of
dsp_lock_chans()/dsp_unlock_chans(). These functions are useful when we
want to potentially lock both channels. Here we know which channel we
are locking, so we can just lock it directly. This way we get rid of the
prio variable as well.

Related to runpid again, there is no reason to assign it when
CHN_F_RUNNING is not set. channel->pid (as well as channel->comm) is
always assigned in dsp_chn_alloc().

Get rid of runpid. I do not see how we can end up with channel->pid
(td->td_proc->p_pid) not matching buf->uio_td->td_proc->p_pid.

Also improve errno values.

Sponsored by:	The FreeBSD Foundation
MFC after:	1 week
Reviewed by:	markj
Differential Revision:	https://reviews.freebsd.org/D53736
2025-11-21 17:14:13 +01:00
Alexander Ziaee e13664f6a4 dmesg.8: Index kern.msgbuf_show_timestamp
This is the only place this important debugging tunable is documented.
Mark it up with the Va macro according to style.mdoc(5) so that people
can find it via `apropos Va=kern.msg`, the standard syntax to search
the FreeBSD manual for sysctls and tunables.

Fixes:	6910fee62e (dmesg: Document kern.msgbuf_show_timestamp)
2025-11-21 11:04:09 -05:00
Kristof Provost 7dedc3c214 pf: fix another endpoint-independent crash
In c12013f5bb we fixed udp_mapping cleanup issues in pf_get_sport(), but
missed the static-port case (i.e. low == 0 && high == 0). We could still exit
pf_get_sport() without either inserting the udp_mapping or freeing it.

Address this and add a test case to provoke the problem.

Reviewed by:	thj
MFC after:	1 week
Sponsored by:	Rubicon Communications, LLC ("Netgate")
Differential Revision:	https://reviews.freebsd.org/D53856
2025-11-21 16:23:46 +01:00
Konstantin Belousov d8bfcacd12 vm_fault: add a verifier that the PG_ZERO page is indeed zeroed
Compiled under INVARIANTS, activated by the same sysctl
debug.vm_check_pg_zero.

Reviewed by:	markj
Sponsored by:	The FreeBSD Foundation
MFC after:	1 week
Differential revision:	https://reviews.freebsd.org/D53850
2025-11-21 17:02:21 +02:00
Konstantin Belousov b9fc7628db vm_page_free_prep(): convert PG_ZERO zeroed page check to use sf_buf
Make the check MI by allocating sf_buf in non-blockable manner. For
DMAP arches, this should be nop since sf_buf allocation cannot fail
trivially. For non-DMAP arches, we get the checks activated unless there
is serious sf_buf pressure, which typically should be not.

The context for vm_page_free_prep() should be ready to block on some VM
mutexes, which should make it reasonable to block on sf_buf list lock.

Move the code to INVARIANTS build from DIAGNOSTIC, and control its activation
with the sysctl debug.vm_check_pg_zero.

Reviewed by:	markj
Sponsored by:	The FreeBSD Foundation
MFC after:	1 week
Differential revision:	https://reviews.freebsd.org/D53850
2025-11-21 17:02:21 +02:00
Konstantin Belousov b2b3d2a962 rtld-elf: move powerpc-specific auxv compat code into arch hook
Tested by:	Timothy Pearson (tpearson_raptorengineering.com)
Sponsored by:	The FreeBSD Foundation
MFC after:	1 week
Differential revision:	https://reviews.freebsd.org/D53801
2025-11-21 15:33:17 +02:00
Brooks Davis 747e8427e9 sys/syscallsubr.h: fix some whitespace
Sponsored by:	DARPA, AFRL
2025-11-21 12:13:00 +00:00
Brooks Davis 5b3368322b sys/extaddr.h: don't declare struct iovec
The code never uses it so there's no need to forward declare it.

Sponsored by:	Innovate UK
2025-11-21 12:13:00 +00:00
Gordon Bergling 8158b813d9 isp.4: Fix a typo in the manual page
- s/Chanel/Channel/

MFC after:	3 days
2025-11-21 10:14:35 +01:00
Gordon Bergling bb3bfc7ca8 snd_dummy.4: Fix a typo in the manual page
- s/devic/device/

MFC after:	3 days
2025-11-21 10:13:39 +01:00
Gordon Bergling 361492bfb2 pfctl(8): Fix a typo in an error message
- s/registeration/registration/

MFC after:	5 days
2025-11-21 10:10:31 +01:00
Peter Holm d941fde350 stress2: Update the exclude list 2025-11-21 09:50:30 +01:00
Peter Holm c149db04ae stress2: No not rely on unset variables when using 'set -u' 2025-11-21 09:49:47 +01:00
Peter Holm 51e0c42874 stress2: Added more robust test termination 2025-11-21 09:48:02 +01:00
Seyed Pouria Mousavizadeh Tehrani f2582653a4 ip: use standard C types for ECN helper functions
No functional change intended, suggested by glebius.

Reviewed by:		rscheff, zlei, tuexen
Differential Revision:	https://reviews.freebsd.org/D53739
2025-11-21 08:58:12 +01:00
Adrian Chadd 4d29178e71 iwx: tag RX frames as A_MPDU RX; tag A-MSDU frames appropriately
* tag packets for 11n/11ac associated nodes with A_MPDU so they
  get passed into the reordering logic

* tag A-MSDU frames with AMSDU and AMSDU_MORE so they don't get
  dropped due to duplicate sequence numbers.

Note: I haven't yet elicited A-MSDU in A-MPDU to fully test this,
but I do see the net80211 reordering logic kick in (which you can
see via wlanstats -i wlan0 -o ampdu 1).

I've checked with Johannes Berg at Intel (who maintains the linux
iwlwifi stuff); he replied saying none of the firmware versions are
doing AMPDU reorder offloading.

Differential Revision:	https://reviews.freebsd.org/D53781

Locally tested:

 * AX210, STA mode, > 200mbit bidirectional traffic testing on
   5GHz VHT/40.
2025-11-20 23:09:47 -08:00
Kevin Bowling 2ead091715 e1000: Don't enable ASPM L1 without L0s
Reporter noted packet loss with 82583.  NVM is down level.  The
errata docs mention disabling this, which should be the firmware
default, so I am not sure why we were enabling this bit.  Linux and
OpenBSD have the same issue, while NetBSD got it right.

Reported by:	Codin <codin@nagi.ftp.sh>
Tested by:	Codin <codin@nagi.ftp.sh>
MFC after:	2 weeks
2025-11-20 23:44:25 -07:00