Add Ubuntu 24.04 (kernel 6.17) support#1
Merged
Merged
Conversation
Add kernel version compatibility shims in dkms_compat.h so the same 6.9.5 source tree compiles cleanly against both Ubuntu 22.04 (kernel 6.8.x) and Ubuntu 24.04 HWE (kernel 6.17.x). Compat shims added for: - hrtimer_init -> hrtimer_setup (removed in 6.15) - genlmsg_multicast_allns signature changes (6.9/6.12 boundaries) - no_llseek -> noop_llseek (removed in 6.12) - struct kernel_ethtool_ts_info (introduced in 6.11) - debugfs_real_fops -> debugfs_get_aux (removed in 6.16) - UDP_TUNNEL_NIC_INFO_MAY_SLEEP (removed in 6.17) - xfrmdev_ops net_device parameter (added in 6.16) - cyclecounter const qualifier (changed in 6.14) - PTP_EXTTS_EVENT_VALID / PTP_EXT_OFFSET (version-guarded) CI matrix now runs dkms-test on both ubuntu-22.04 and ubuntu-24.04. Local UTM test script updated to install HWE kernels for both releases.
Run ptp-operator e2e tests on both Ubuntu versions since each runner builds DKMS modules against its own kernel. The ptp-images job stays on 22.04 as it produces architecture-agnostic container images. Podman install is now conditional: kubic repo for 22.04 (ships old podman), default apt for 24.04 (ships podman 4.9+).
Ubuntu 22.04 runners have oc pre-installed but 24.04 runners do not. Download from the OCP stable mirror when missing.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
dkms_compat.hso the 6.9.5 source tree compiles on both Ubuntu 22.04 (kernel 6.8) and Ubuntu 24.04 HWE (kernel 6.17)hrtimer_init,genlmsg_multicast_allns,no_llseek,kernel_ethtool_ts_info,debugfs_real_fops/debugfs_get_aux,UDP_TUNNEL_NIC_INFO_MAY_SLEEP,xfrmdev_opsnet_device param,cyclecounterconst qualifier, PTP flagsdkms-teston bothubuntu-22.04andubuntu-24.04Test plan
Assisted-By: Cursor