FreeBSD/src e1c5e04sys/dev/qlnx/qlnxe ecore_dev.c ecore_mcp.c

qlnxe: Report speeds in decimal format

It is more natural to read the speed in decimal format than hexadecimal
one.

Spotted this while diagnosing PR 287445,

```
[__ecore_configure_pf_max_bandwidth:6864(qlnx-0)]Configured MAX bandwidth to be 000061a8 Mb/sec
[__ecore_configure_pf_min_bandwidth:6922(qlnx-0)]Configured MIN bandwidth to be 750 Mb/sec
```

Reviewed by:    kbowling
MFC after:      1 week
Differential Revision:  https://reviews.freebsd.org/D52376
DeltaFile
+3-3sys/dev/qlnx/qlnxe/ecore_dev.c
+1-1sys/dev/qlnx/qlnxe/ecore_mcp.c
+4-42 files

FreeBSD/src 08356a7sys/dev/qlnx/qlnxe qlnx_os.c qlnx_def.h

qlnxe: Unconditionally enable extended media types

Those extended media types are available since about 2015 [1]. All
supported branches already have them defined.

No functional change intended.

[1] eb7e25b22f1c ifmedia changes: Extend the number of available subtypes for Ethernet media ...

Reviewed by:    kbowling
MFC after:      1 week
Differential Revision:  https://reviews.freebsd.org/D52374
DeltaFile
+9-12sys/dev/qlnx/qlnxe/qlnx_os.c
+0-16sys/dev/qlnx/qlnxe/qlnx_def.h
+9-282 files

FreeBSD/src 6e3c8c0sys/dev/qlnx/qlnxe qlnx_os.c

qlnxe: Support SIOCGIFXMEDIA ioctl

ifconfig(8) will try SIOCGIFXMEDIA first and then retry SIOCGIFMEDIA if
that fails. Since the driver reports extended media types, support
SIOCGIFXMEDIA ioctl directly rather than doing another round.

Reviewed by:    kbowling
MFC after:      1 week
Differential Revision:  https://reviews.freebsd.org/D52375
DeltaFile
+3-1sys/dev/qlnx/qlnxe/qlnx_os.c
+3-11 files

FreeBSD/src f304c5busr.sbin/bsdinstall bsdinstall.8, usr.sbin/bsdinstall/scripts zfsboot

bsdinstall: Drop outdated comments about ZFS dataset compression

All datasets on zroot pool are compressed by default since FreeBSD 11.0 [1],
no need to mention that on some specific datasets these days.

[1] 47206692f2cca020891d1eec5028e02c3e6f56c5

Reviewed by:    jrm (mentor), ziaee
MFC after:      3 days
Differential Revision:   https://reviews.freebsd.org/D52304
DeltaFile
+2-2usr.sbin/bsdinstall/bsdinstall.8
+2-2usr.sbin/bsdinstall/scripts/zfsboot
+4-42 files

FreeBSD/src 637d985sys/kern kern_malloc.c, sys/vm vm_domainset.c vm_page.c

vm_domainset: Refactor iterators, multiple fixes

vm_domainset_iter_first() would not check if the initial domain selected
by the policy was effectively valid (i.e., allowed by the domainset and
not marked as ignored by vm_domainset_iter_ignore()).  It would just try
to skip it if it had less pages than 'free_min', and would not take into
account the possibility of no domains being valid.

Factor out code that logically belongs to the iterator machinery and is
not tied to how allocations (or impossibility thereof) are to be
handled.  This allows to remove duplicated code between
vm_domainset_iter_page() and vm_domainset_iter_policy(), and between
vm_domainset_iter_page_init() and _vm_domainset_iter_policy_init().
This also allows to remove the 'pages' parameter from
vm_domainset_iter_page_init().

This also makes the two-phase logic clearer, revealing an inconsistency
between setting 'di_minskip' to true in vm_domainset_iter_init()
(implying that, in the case of waiting allocations, further attempts

    [24 lines not shown]
DeltaFile
+141-101sys/vm/vm_domainset.c
+15-6sys/vm/vm_page.c
+9-3sys/vm/vm_kern.c
+7-4sys/kern/kern_malloc.c
+6-4sys/vm/uma_core.c
+4-5sys/vm/vm_domainset.h
+182-1231 files not shown
+183-1247 files

FreeBSD/src d0b691asys/vm vm_domainset.c

vm_domainset: Simplify vm_domainset_iter_next()

As we are now visiting each domain only once, the test in
vm_domainset_iter_prefer() about skipping the preferred domain (the one
initially visited for policy DOMAINSET_POLICY_PREFER) becomes redundant.
Removing it makes this function essentially the same as
vm_domainset_iter_rr().

Thus, remove vm_domainset_iter_prefer().  This makes all policies behave
the same in vm_domainset_iter_next().

No functional change (intended).

PR:             277476
MFC after:      10 days
Sponsored by:   The FreeBSD Foundation
Differential Revision:  https://reviews.freebsd.org/D51250
DeltaFile
+2-30sys/vm/vm_domainset.c
+2-301 files

FreeBSD/src d440953sys/vm vm_domainset.c vm_domainset.h

vm_domainset: Only probe domains once when iterating, instead of up to 4 times

Because of the 'di_minskip' logic, which resets the initial domain, an
iterator starts by considering only domains that have more than
'free_min' pages in a first phase, and then all domains in a second one.
Non-"underpaged" domains are thus examined twice, even if the allocation
can't succeed.

Re-scanning the same domains twice just wastes time, as allocation
attempts that must not wait may rely on failing sooner and those that
must will loop anyway (a domain previously scanned twice has more pages
than 'free_min' and consequently vm_wait_doms() will just return
immediately).

Additionally, the DOMAINSET_POLICY_FIRSTTOUCH policy would aggravate
this situation by reexamining the current domain again at the end of
each phase.  In the case of a single domain, this means doubling again
the number of times domain 0 is probed.


    [16 lines not shown]
DeltaFile
+31-22sys/vm/vm_domainset.c
+5-1sys/vm/vm_domainset.h
+36-232 files

FreeBSD/src 54cc3dausr.sbin/moused/moused moused.c

moused: fix GCC build

error: 'static' is not at beginning of declaration [-Werror=old-style-declaration]
DeltaFile
+1-1usr.sbin/moused/moused/moused.c
+1-11 files

FreeBSD/src b0474e1sys/geom geom_event.c

geom: only set TDP_GEOM for user threads

For kernel threads, ASTs are not handled at all, so there is no reason
to expect that g_waitidle() would be called through AST scheduling.

PR:     289204
Reviewed by:    markj
Sponsored by:   The FreeBSD Foundation
MFC after:      1 week
Differential revision:  https://reviews.freebsd.org/D52421
DeltaFile
+7-2sys/geom/geom_event.c
+7-21 files

FreeBSD/src f51d7d5sys/kern kern_thr.c

kern_thr_exit(): clear kASTs in advance

PR:     289204
Reviewed by:    markj
Sponsored by:   The FreeBSD Foundation
MFC after:      1 week
Differential revision:  https://reviews.freebsd.org/D52421
DeltaFile
+11-0sys/kern/kern_thr.c
+11-01 files

FreeBSD/src c745a68sys/dev/iommu busdma_iommu.c iommu.h, sys/kern subr_bus.c

iommu_get_requester(): make it more resilient against arbitrary dev arg

If passed the parent of a device instead of the device, the loop might
end up with the host bridge in the pci local variable.  If the passed
device is not from the pci hierarchy, any of the calculated parents
might be NULL.

Change the interface to allow the caller to receive error.
Instead of asserting, just issue a message and return ENXIO,
allowing the caller to select appropriate action.

PR:     289318
Reviewed by:    jah
Sponsored by:   The FreeBSD Foundation
MFC after:      2 weeks
Differential revision:  https://reviews.freebsd.org/D52406
DeltaFile
+41-13sys/dev/iommu/busdma_iommu.c
+11-3sys/x86/iommu/amd_intrmap.c
+11-2sys/kern/subr_bus.c
+6-2sys/x86/iommu/intel_intrmap.c
+1-1sys/dev/iommu/iommu.h
+70-215 files

FreeBSD/src 9bfb140sys/net80211 ieee80211_output.c ieee80211_var.h

net80211: add support for drivers to disable sending NULL data frames

net80211 has various places where null data / null qos data frames
are sent.  However plenty of NICs shouldn't be sending them from
net80211 and it may even upset their 802.11n window / sequence number
tracking.

So add support here.

Differential Revision:  https://reviews.freebsd.org/D52297
Reviewed by:    bz
DeltaFile
+6-0sys/net80211/ieee80211_output.c
+2-1sys/net80211/ieee80211_var.h
+8-12 files

FreeBSD/src b73f52asys/dev/usb/wlan if_rsu.c if_rsureg.h

rsu: implement A-MPDU TX; add TODO items for further work

* Enable A-MPDU TX by fixing the A-MPDU TX establish routine;
  always assign sequence numbers from net80211 (for now); and
  fix the descriptor programming.

* Add TODO items around CAM allocation for keys, MAC ID stuff which
  we likely need to fix for working IBSS/AP behaviour, and whatever
  other bits and pieces I noticed.

* Disable amsdu2ampdu, we can decap A-MSDU just fine in net80211,
  doubly so if we somehow get A-MSDU inside an A-MPDU.

I've tested / verified that A-MPDU TX and A-MPDU RX is correctly
established and functioning by using rtwn in monitor mode.

I used an old r92su linux out of tree driver for comparison.

Differential Revision:  https://reviews.freebsd.org/D50748
Okayed by: bz
DeltaFile
+43-19sys/dev/usb/wlan/if_rsu.c
+8-1sys/dev/usb/wlan/if_rsureg.h
+51-202 files

FreeBSD/src 5d31e67sys/dev/usb/wlan if_rsu.c

rsu: enable seqno offload

Enable sequence number offload.

This should both enable the sequence number offloading and disable
the net80211 TX lock from being acquired/released/checked.

Differential Revision:  https://reviews.freebsd.org/D50749
Okayed by: bz
DeltaFile
+4-0sys/dev/usb/wlan/if_rsu.c
+4-01 files

FreeBSD/src e76e631sys/dev/usb/wlan if_run.c

run: enable seqno offload

Enable sequence number offload.

This should both enable the sequence number offloading and disable
the net80211 TX lock from being acquired/released/checked.

Differential Revision:  https://reviews.freebsd.org/D50747
Okayed by: bz
DeltaFile
+14-0sys/dev/usb/wlan/if_run.c
+14-01 files

FreeBSD/src bda4837usr.sbin/mountd exports.5

exports.5: Add a paragraph clarifying the use of "V4:"

The exports.5 man page is a bit of a monster.
One place of common confusion is the use of
the "V4:" line(s) for defining the location of the
root of the NFSv4 export subtree.

This patch adds a paragraph in an attempt to
clarify this.

This is a content change.

(cherry picked from commit 200730f29dbc8da2aa9392b35518bf77b8899f89)
DeltaFile
+14-1usr.sbin/mountd/exports.5
+14-11 files

FreeBSD/src caf1624usr.sbin/mountd exports.5

exports.5: Add a paragraph clarifying the use of "V4:"

The exports.5 man page is a bit of a monster.
One place of common confusion is the use of
the "V4:" line(s) for defining the location of the
root of the NFSv4 export subtree.

This patch adds a paragraph in an attempt to
clarify this.

This is a content change.

(cherry picked from commit 200730f29dbc8da2aa9392b35518bf77b8899f89)
DeltaFile
+14-1usr.sbin/mountd/exports.5
+14-11 files

FreeBSD/src 4729d5eusr.sbin/ntp/ntpd leap-seconds

leap-seconds: Update to leap-seconds.3960835200 from IERS

Current leap-seconds file has already expired on 28 June 2025

PR:             289352
Obtained from:  https://hpiers.obspm.fr/iers/bul/bulc/ntp/leap-seconds.3960835200
MFC after:      3 days
DeltaFile
+4-4usr.sbin/ntp/ntpd/leap-seconds
+4-41 files

FreeBSD/src 5d65c9esys/netinet tcp_syncache.c

tcp: micro-optimize SYN-cookie expansion

Only compute wscale when it is actually used. While there, change the
type of wscale to u_int as suggested by glebius.
No functional change intended.

Reviewed by:            glebius, rscheff (older version)
Sponsored by:           Netflix, Inc.
Differential Revision:  https://reviews.freebsd.org/D52296

(cherry picked from commit 341d1aabc13e47911d2eb38e857b90f7d356134e)
DeltaFile
+8-6sys/netinet/tcp_syncache.c
+8-61 files

FreeBSD/src 952ce99sys/dev/nvme nvme_ctrlr.c

nvme: Linux compat: don't filter & 0x3.

Strictly speaking, opc & 0x3 == 3 is input and output at the same
time. This is undefined, in general. But for vendor commands, it's
vendor specific. Linux allows it generally and treats it as a read,
which is what we do too, so remove this check to be more compatible with
Linux's behavior (which we're trying to emulate).

Sponsored by:           Netflix
DeltaFile
+0-8sys/dev/nvme/nvme_ctrlr.c
+0-81 files

FreeBSD/src 7626ba0share/mk bsd.opts.mk src.opts.mk

src.opts.mk: Remove REPRODUCIBLE_BUILD from the default list

It was added to the list in bsd.opts.mk in commit 4f81c42fbd76, so
should have been removed here.

On stable/15, this also fixes a problem in commit
6e7cc49f94cf ("Make stable/15 a stable branch"), which made
REPRODUCIBLE_BUILD a default-yes option.  It modified src.opts.mk
instead of bsd.opts.mk.  This change modifies the latter accordingly.

Reported by:    cperciva
Approved by:    re (cperciva)
Fixes:          4f81c42fbd76 ("share/mk: Substitute reproducible prefixes in dwarf info")
MFC after:      3 days
Sponsored by:   The FreeBSD Foundation
Sponsored by:   Klara, Inc.

(cherry picked from commit b2f5dc591ef2547ee2e9b68e58a263cd34948db1)
DeltaFile
+1-1share/mk/bsd.opts.mk
+0-1share/mk/src.opts.mk
+1-22 files

FreeBSD/src 614e9b3sys/dev/virtio/network if_vtnet.c

vtnet: fix compilation for NOIP configs

Reported by:    bz
Fixes:          3008f30d2c2c ("vtnet: improve checksum offloading")
MFC after:      3 days
DeltaFile
+9-0sys/dev/virtio/network/if_vtnet.c
+9-01 files

FreeBSD/src 3008f30share/man/man4 vtnet.4, sys/dev/virtio/network if_vtnet.c if_vtnetvar.h

vtnet: improve checksum offloading

When transmitting a packet over the vtnet interface, map the
csum flags CSUM_DATA_VALID | CSUM_PSEUDO_HDR to the virtio
flag VIRTIO_NET_HDR_F_DATA_VALID.
When receiving a packet over the virtio network channel, translate
the virtio flag VIRTIO_NET_HDR_F_NEEDS_CSUM not to CSUM_DATA_VALID |
CSUM_PSEUDO_HDR, but to CSUM_TCP, CSUM_TCP_IPV6, CSUM_UDP, or
CSUM_UDP_IPV6.
The second change fixes a series of issue related to checksum
offloading for if_vtnet.
While there, improve the stats counters to allow a detailed view
on what is going on in relation to checksum offloading.

PR:                     165059
Reviewed by:            tuexen, manpages
MFC after:              3 days
Differential Revision:  https://reviews.freebsd.org/D51686
DeltaFile
+123-119sys/dev/virtio/network/if_vtnet.c
+19-9share/man/man4/vtnet.4
+1-1sys/dev/virtio/network/if_vtnetvar.h
+143-1293 files

FreeBSD/src ca0ba81share/man/man4 vtnet.4, sys/dev/virtio/network if_vtnet.c if_vtnetvar.h

Revert "vtnet: improve checksum offloading"

This reverts commit 1c23d8f9f39870951c1d0dfbb112fc4e53237737.
Will be committed again with correct authorship.

(cherry picked from commit f217bc7651a4126a6819da1af03a64e81a551005)
DeltaFile
+120-124sys/dev/virtio/network/if_vtnet.c
+9-19share/man/man4/vtnet.4
+1-1sys/dev/virtio/network/if_vtnetvar.h
+130-1443 files

FreeBSD/src f217bc7share/man/man4 vtnet.4, sys/dev/virtio/network if_vtnet.c if_vtnetvar.h

Revert "vtnet: improve checksum offloading"

This reverts commit 1c23d8f9f39870951c1d0dfbb112fc4e53237737.
Will be committed again with correct authorship.
DeltaFile
+120-124sys/dev/virtio/network/if_vtnet.c
+9-19share/man/man4/vtnet.4
+1-1sys/dev/virtio/network/if_vtnetvar.h
+130-1443 files

FreeBSD/src 0143c9esys/dev/virtio/network if_vtnet.c

Revert "vtnet: fix compilation for NOIP configs"

This reverts commit 7c448f5aab8be6977d0860e608e7d497b495d28c.
Will be committed again with correct authorship.
DeltaFile
+0-9sys/dev/virtio/network/if_vtnet.c
+0-91 files

FreeBSD/src b2f5dc5share/mk src.opts.mk

src.opts.mk: Remove REPRODUCIBLE_BUILD from the default list

It was added to the list in bsd.opts.mk in commit 4f81c42fbd76, so
should have been removed here.

Reported by:    cperciva
Fixes:          4f81c42fbd76 ("share/mk: Substitute reproducible prefixes in dwarf info")
MFC after:      3 days
Sponsored by:   The FreeBSD Foundation
Sponsored by:   Klara, Inc.
DeltaFile
+0-1share/mk/src.opts.mk
+0-11 files

FreeBSD/src ef083desys/dev/ahci ahci_pci.c, sys/dev/ichsmb ichsmb_pci.c

Add random Intel Elkhart Lake device IDs.
DeltaFile
+3-0sys/dev/ichsmb/ichsmb_pci.c
+2-0sys/dev/usb/controller/xhci_pci.c
+1-0sys/dev/ahci/ahci_pci.c
+1-0sys/dev/sound/pci/hda/hdac.c
+1-0sys/dev/sound/pci/hda/hdac.h
+8-05 files

FreeBSD/src 0cba688sys/tools makeobjops.awk

makeobjops.awk: Style nits in generated files

MFC after:      1 week
Differential Revision:  https://reviews.freebsd.org/D52407
DeltaFile
+2-2sys/tools/makeobjops.awk
+2-21 files

FreeBSD/src f865264sys/dev/random random_harvestq.c randomdev.h

random: Allow pure entropy sources to provide a min-entropy estimate

The current implementation of the NIST health tests assumes a
min-entropy estimate of one bit per sample, which is quite conservative.
For so-called "pure" sources (e.g., virtio-random, TPM) it might be nice
to support larger estimates so that the tests catch failed devices more
quickly.

Thus:
- let each pure random source provide an estimate, so that downstreams
  or driver implementors can override defaults if they want to;
- increase the default estimate for pure sources;
- for pure sources initialize the state machine at source registration
  time.

Reviewed by:    cem
MFC after:      2 weeks
Sponsored by:   Stormshield
Sponsored by:   Klara, Inc.
Differential Revision:  https://reviews.freebsd.org/D52232
DeltaFile
+17-4sys/dev/random/random_harvestq.c
+1-0sys/dev/random/randomdev.h
+18-42 files