[Midnightbsd-cvs] [MidnightBSD/src] be52a4: tests: gif(4): Add tests to cover all IPv[46] in I...
Zhenlei Huang
noreply at github.com
Tue Dec 16 22:47:20 EST 2025
Branch: refs/heads/master
Home: https://github.com/MidnightBSD/src
Commit: be52a4bc44bd80c36303c0d22ef155fab339ed15
https://github.com/MidnightBSD/src/commit/be52a4bc44bd80c36303c0d22ef155fab339ed15
Author: Zhenlei Huang <zlei at FreeBSD.org>
Date: 2025-12-16 (Tue, 16 Dec 2025)
Changed paths:
M tests/sys/net/if_gif.sh
Log Message:
-----------
tests: gif(4): Add tests to cover all IPv[46] in IPv[46] setups
While here, rename basic to 4in4 to be consistent with other tests.
MFC after: 1 week
Differential Revision: https://reviews.freebsd.org/D51566
(cherry picked from commit 62439516cc9bba32ed2406f340326c4d37e4cc59)
(cherry picked from commit c2806cddc64766b69daa42b4fb192f767e4b4705)
Commit: c09d97fcafadd2ef8e5ac866f9fa2fe1e2489f63
https://github.com/MidnightBSD/src/commit/c09d97fcafadd2ef8e5ac866f9fa2fe1e2489f63
Author: Zhenlei Huang <zlei at FreeBSD.org>
Date: 2025-12-16 (Tue, 16 Dec 2025)
Changed paths:
M tests/sys/net/if_gif.sh
Log Message:
-----------
tests: gif(4): Add regression tests for setup with EtherIP
Tunnel IPv[46] traffic over IPv[46] should still function when the
gif(4) interface is member of a if_bridge(4) interface, aka the
EtherIP setup.
PR: 227450
Reviewed by: kp
MFC after: 2 weeks
Differential Revision: https://reviews.freebsd.org/D51682
(cherry picked from commit 04d0dc4c0c65592a21225cff43f25e0a0da64eb9)
(cherry picked from commit e5f01421ddbfee935546271121e6254472dcc7f5)
Commit: f5cec439791f25e3337fd0b6371de4b0081a3526
https://github.com/MidnightBSD/src/commit/f5cec439791f25e3337fd0b6371de4b0081a3526
Author: Zhenlei Huang <zlei at FreeBSD.org>
Date: 2025-12-16 (Tue, 16 Dec 2025)
Changed paths:
M sys/net/if_bridge.c
M sys/net/if_gif.c
Log Message:
-----------
EtherIP: Fix passing the address family from if_bridge(4) to gif(4)
Given IPPROTO_IPV4, IPPROTO_IPV6 and IPPROTO_ETHERIP have different
protocol numbers, then it is perfect valid to tunnel IPv4, IPv6 and
Ethernet traffic over IPv[46] by the same interface. Since gif(4) has
already utilized the inbound csum_data field to carry address family,
also teach if_bridge(4) to do that, rather than checking if a gif(4)
interface is member of a if_bridge(4) interface.
Without this fix, tunnel IPv[46] over IPv[46] will not work when the
gif(4) interface is member of a if_bridge(4) interface, aka the EtherIP
setup, as the address family passed from gif_output() will be overwritten
with the wrong one AF_LINK by gif_transmit(), and end up with incorrectly
encapsulated packets.
PR: 227450
Reviewed by: kp
Tested by: meta
Fixes: 8a0308722372 gif(4): Assert that gif_output() isn't called for EtherIP
MFC after: 2 weeks
Differential Revision: https://reviews.freebsd.org/D51682
(cherry picked from commit f4744b8acb932fbb3e48b71d31b7cd585566b668)
(cherry picked from commit aeb8f341ad20b5f49561fff688e8bee601b0e15a)
Commit: af66b9eabb046d305b949e2fe62ee42182e7f582
https://github.com/MidnightBSD/src/commit/af66b9eabb046d305b949e2fe62ee42182e7f582
Author: Zhenlei Huang <zlei at FreeBSD.org>
Date: 2025-12-16 (Tue, 16 Dec 2025)
Changed paths:
M sys/netpfil/ipfw/ip_fw2.c
Log Message:
-----------
ipfw: Teach ipfw that EtherIP is an upper layer protocol
so that we do not discard EtherIP packets ( over IPv6 network ) when
net.inet6.ip6.fw.deny_unknown_exthdrs is set to 1 ( which is the default
value ).
PR: 227450
Reviewed by: ae, #network
MFC after: 1 week
Differential Revision: https://reviews.freebsd.org/D52566
(cherry picked from commit 0418e6690e91aa6c38dd9af9da43c4c5a9dc1cd2)
(cherry picked from commit b1c96e54b906d0cdea0b5a9c74cc295803dfe50e)
(cherry picked from commit b4c6c3db0379a5b3d34143325805cd7e68cf3d9a)
Commit: 69a641772d371147d207a1d835e8aa6b2eb0bb25
https://github.com/MidnightBSD/src/commit/69a641772d371147d207a1d835e8aa6b2eb0bb25
Author: Zhenlei Huang <zlei at FreeBSD.org>
Date: 2025-12-16 (Tue, 16 Dec 2025)
Changed paths:
M sys/kern/init_main.c
Log Message:
-----------
init_main: Fix logging the subsystem of pre-loaded kernel modules
The pre-load, aka linker_preload() runs at the order of SI_SUB_KLD, but
a pre-loaded module may have SYSINITs that have startup order prior to
SI_SUB_KLD, e.g. TUNABLE_INT() / TUNABLE_LONG(), hence it is possible
that we run into abnormal orders.
Without this change, the subsystem of the pre-loaded kernel modules
will be melted into previous one. That is mostly harmless but confusing.
MFC after: 1 week
Differential Revision: https://reviews.freebsd.org/D47904
(cherry picked from commit 11f1dd193af57dfa5128eadc62b084502292a784)
(cherry picked from commit b2293f7f60c238e7a83551472aed9452cd017769)
Commit: 86543353e45c79678d068d3eb1fe5972e99fd1fb
https://github.com/MidnightBSD/src/commit/86543353e45c79678d068d3eb1fe5972e99fd1fb
Author: Zhenlei Huang <zlei at FreeBSD.org>
Date: 2025-12-16 (Tue, 16 Dec 2025)
Changed paths:
M sys/dev/qlnx/qlnxe/qlnx_os.c
Log Message:
-----------
qlnxe: Fix advertising the IFCAP_LINKSTATE capability
The following up advertising of IFCAP_HWCSUM capability unconditionally
overwrite IFCAP_LINKSTATE.
Reviewed by: kbowling
MFC after: 3 days
Differential Revision: https://reviews.freebsd.org/D51450
(cherry picked from commit c18860339d5051dea99cb5cee7e322ffa5dd2a81)
(cherry picked from commit cdd97f3aacf1e509858207a0caa085b9c47e5e9e)
Commit: bfbf4f99fe424cd885d02cee168739d2c05c8592
https://github.com/MidnightBSD/src/commit/bfbf4f99fe424cd885d02cee168739d2c05c8592
Author: Zhenlei Huang <zlei at FreeBSD.org>
Date: 2025-12-16 (Tue, 16 Dec 2025)
Changed paths:
M sys/dev/qlnx/qlnxe/qlnx_def.h
M sys/dev/qlnx/qlnxe/qlnx_os.c
Log Message:
-----------
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
(cherry picked from commit 08356a733eb7a7bef1afe20ded2d983b55310de7)
(cherry picked from commit 5aa49c98edfc48fbe96f7aba0e0631d4c0f29493)
(cherry picked from commit 2cb20b25a5739fb542513571e3f6d7ffd607f346)
Commit: d66d99bd0ecfc2bfbaa0c358180557f13579e752
https://github.com/MidnightBSD/src/commit/d66d99bd0ecfc2bfbaa0c358180557f13579e752
Author: Zhenlei Huang <zlei at FreeBSD.org>
Date: 2025-12-16 (Tue, 16 Dec 2025)
Changed paths:
M sys/dev/qlnx/qlnxe/qlnx_os.c
Log Message:
-----------
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
(cherry picked from commit 6e3c8c0f709ab0b9d70e2725e58f4a4ba7a4404e)
(cherry picked from commit 817bc700927087a52d0dd34c43e45736a867240e)
(cherry picked from commit ac4b48b6ad34a83406054c5badd0f835136ffd88)
Commit: a79c5dd2bb811a521e0b524b294684981ce4cd3b
https://github.com/MidnightBSD/src/commit/a79c5dd2bb811a521e0b524b294684981ce4cd3b
Author: Zhenlei Huang <zlei at FreeBSD.org>
Date: 2025-12-16 (Tue, 16 Dec 2025)
Changed paths:
M sys/dev/qlnx/qlnxe/ecore_dev.c
M sys/dev/qlnx/qlnxe/ecore_mcp.c
Log Message:
-----------
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
(cherry picked from commit e1c5e043961ab3a5429a0c6e727265dfa819cf00)
(cherry picked from commit 6fb046515ea6005b3958e0c3220d0e6e630af292)
(cherry picked from commit 94d3be2b547c133f42730e6c8692590ea32adab0)
Commit: 25e2ba4008e82ef9b538750f2baa655df89adaff
https://github.com/MidnightBSD/src/commit/25e2ba4008e82ef9b538750f2baa655df89adaff
Author: Zhenlei Huang <zlei at FreeBSD.org>
Date: 2025-12-16 (Tue, 16 Dec 2025)
Changed paths:
M sys/kern/kern_tslog.c
M sys/sys/kernel.h
Log Message:
-----------
tslog: Move sysinit_tslog_shim() into kern_tslog.c
struct sysinit's func pointer requires its address, thus a real function
is generated in every translation unit when the source file has SYSINITs
declared. That results in plenty of identical sysinit_tslog_shim in the
final kernel file, in which only one is used and others are left useless.
MFC after: 1 week
Differential Revision: https://reviews.freebsd.org/D52413
(cherry picked from commit 5f9a05e574050c8b3f6b444311a12e8fb293ad1a)
(cherry picked from commit bd721f6e8040f0b9d0546c293954290844b6a070)
(cherry picked from commit 112d1a5f5df0edb1e530348143413407b2659325)
Commit: 1d2b4f6034f86a9b97098e7561b01a0ea796eb56
https://github.com/MidnightBSD/src/commit/1d2b4f6034f86a9b97098e7561b01a0ea796eb56
Author: Zhenlei Huang <zlei at FreeBSD.org>
Date: 2025-12-16 (Tue, 16 Dec 2025)
Changed paths:
M sys/netinet/tcp_hostcache.c
Log Message:
-----------
tcp: Fix expiring and purging hostcache entries of vnet jails
A jailed process, `sysctl -j foo` or `jexec foo sysctl`, do not have
privilege to write to non-vnet sysctls but only to those marked as jail
writable, aka sysctls those marked with CTLFLAG_VNET flag.
Without this change we will get EPERM when trying to expire and purge
hostcache entries of vnet jails via the net.inet.tcp.hostcache.purgenow
sysctl. Fix that by adding a CTLFLAG_VNET flag.
Reviewed by: tuexen, #transport, #network
Fixes: 264563806496 Add a new sysctl net.inet.tcp.hostcache.purgenow=1 to expire ...
MFC after: 3 days
Differential Revision: https://reviews.freebsd.org/D52692
(cherry picked from commit 33ceb31e256e386da5a42cc7ca2ef8d4b81b6eda)
(cherry picked from commit fa30199a3dbfe1d4994e7e4e63ad9c582c6f8a1a)
(cherry picked from commit 79d114544fabd5a80198e925e4dc34f47a9f9e3a)
Compare: https://github.com/MidnightBSD/src/compare/37672fb8d5fa...1d2b4f6034f8
To unsubscribe from these emails, change your notification settings at https://github.com/MidnightBSD/src/settings/notifications
More information about the Midnightbsd-cvs
mailing list