netmap: Handle TX buffers larger than MCLBYTES
The generic netmap TX pool always allocates standard clusters
(zone_clust), even though the buffer size may be larger.
INVARIANTS kernels panic in nm_os_get_mbuf() on first transmit through a
non-native NIC (e.g. re or epair) using netmap with jumbo frames
configured. Release kernels silently truncate frames in
nm_os_generic_xmit_frame().
Implement cluster zone selection based on the requested size. Catch
oversized requests in nm_os_catch_tx() and return EINVAL. Add a KASSERT
before the truncation fallback in xmit. Make nm_os_get_mbuf() take a
uint32_t size, matching the type of the value passed to it.
Tested using epair, pkt-gen, and tcpdump on release (15.1) and
INVARIANTS (main) kernels at buffer sizes 2048/4096/9216/16384.
Reviewed by: vmaffione, kevans, markj
[2 lines not shown]
liblua: Accept + and e in io.popen mode
Our popen(3) accepts more than the historical "r" and "w" types. Define
the appropriate macro to provide a custom mode check accepting all valid
pipe types.
Reviewed by: kevans
Approved by: kevans (mentor)
Differential Revision: https://reviews.freebsd.org/D61175
libifconfig: Fix SFP table generators for Lua 5.5
This fixes Lua 5.5 compat in the .c template, where the first loop
variable '_' becomes const in Lua 5.5. Use select() to discard inside
the loop instead.
While here, fix a mismatched variable name in the corresponding header
template.
Reported by: Austin Horstman <khaneliman12 at gmail.com>
Reviewed by: kevans
Approved by: kevans (mentor)
Closes: https://github.com/freebsd/freebsd-src/pull/2473
Differential Revision: https://reviews.freebsd.org/D61455
lua: Prune unused luaconf.h copies
Both stand and lib use luaconf.h from contrib and make local
customizations in their respective luaconf.local.h files since
8c784bb8cf36.
Reviewed by: kevans, imp
Approved by: kevans (mentor)
Fixes: 8c784bb8cf36 ("lua: Update to 5.4.4")
MFC after: 3 days
MFC to: stable/14, stable/15
Differential Revision: https://reviews.freebsd.org/D61456
sysutils/vm-bhyve-devel: Fix plist
$ make check-plist
====> Checking for pkg-plist issues (check-plist)
===> Parsing plist
===> Checking for items in STAGEDIR missing from pkg-plist
Error: Orphaned: %%PORTEXAMPLES%%%%EXAMPLESDIR%%/freebsd-arm64.conf
Error: Orphaned: %%PORTEXAMPLES%%%%EXAMPLESDIR%%/linux-arm64.conf
===> Checking for items in pkg-plist which are not in STAGEDIR
===> Error: Plist issues found.
Approved by: portmgr (build fix blanket)
MFH: 2026Q4
(cherry picked from commit d69aa9260797b99a95351f586e632c70dcb3c421)
sysutils/vm-bhyve-devel: Fix plist
$ make check-plist
====> Checking for pkg-plist issues (check-plist)
===> Parsing plist
===> Checking for items in STAGEDIR missing from pkg-plist
Error: Orphaned: %%PORTEXAMPLES%%%%EXAMPLESDIR%%/freebsd-arm64.conf
Error: Orphaned: %%PORTEXAMPLES%%%%EXAMPLESDIR%%/linux-arm64.conf
===> Checking for items in pkg-plist which are not in STAGEDIR
===> Error: Plist issues found.
Approved by: portmgr (build fix blanket)
MFH: 2026Q4
clang: Fix warnings in ARM GCS ACLE header
Including <arm_acle.h> in C code compiled with -Wstrict-prototypes
results in warnings (or errors if -Werror is in effect) due to missing
parameter lists for __gcspr() and __gcspopm().
Submitted upstream as PR#242286.
MFC after: 1 week
Reported by: Pete French <pete at twisted.org.uk>
Reviewed by: dim
Differential Revision: https://reviews.freebsd.org/D61503
ixgbe: Classify missed packets only as input drops
Missed packets should be counted as drops, not as both drops
and errors. Errors should be reserved for things like link level
crc errors.
Reviewed by: kbowling
Sponsored by: Netflix
Differential Revision: https://reviews.freebsd.org/D61523
website: Revert events with undefined dates
The website build fails because the added EuroBSDCon 2027 and
November 2027 FreeBSD Vendor Summit entries use placeholder dates
(""2027-09-xx"", ""2027-11-xx"") which cannot be parsed.
Revert these events for now. They should be re-added once the
exact dates are known.
devel/jsonnet: Update to 0.22.0
- Build with USE_SYSTEM_RAPIDYAML, so jsonnet keeps the system
rapidyaml and c4core. The rapidyaml release download is no longer
necessary.
- Add two upstream fixes for USE_SYSTEM_RAPIDYAML: the find_package()
call for ryml, and the ryml_std.hpp include in vm.cpp.
- Remove the patches for files that upstream removed or changed.
- Do not build the man pages. They need help2man.
The new CMakeLists.txt requires CMake 3.15 or later, so the port builds
with CMake 4.
PR: 298299
Changelog: https://github.com/google/jsonnet/releases/tag/v0.22.0
powerpc: fix the VSCR save and restore on little endian
VSCR was saved and restored through stvewx/lvewx at byte 12 of a
16 byte slot. Which element those instructions move at a given address
depends on the byte order, so on little-endian kernels they touched VR
bits 0-31 instead of the 96-127 where mfvscr/mtvscr keep VSCR: every
context switch and signal reset VSCR to 0, losing NJ and SAT.
Replicate the word into all four elements first so that the element
choice no longer matters.
VSCR[NJ] set with mtvscr read back as 0 after a usleep on a
little-endian kernel; it is preserved now.
Reviewed by: adrian, jhibbits
MFC after: 1 week
Differential Revision: https://reviews.freebsd.org/D61525