Skip to content

Select XXHASH in Kconfig - #18

Closed
Stuartwastaken wants to merge 1 commit into
mainfrom
fix/kconfig-select-xxhash
Closed

Stuartwastaken wants to merge 1 commit into
mainfrom
fix/kconfig-select-xxhash

Conversation

@Stuartwastaken

@Stuartwastaken Stuartwastaken commented Nov 18, 2026 •

Copy link
Copy Markdown
Owner

homa_peer.c calls xxh32 for the peer and route hash tables, but lib/xxhash.o is only built when some option selects XXHASH, and nothing under net/ does. Configs that have btrfs, zstd, erofs xattrs or KSM get it for free, which hides the problem. I checked with a net-next tinyconfig plus IPV6, XFRM and HOMA=y: vmlinux failed to link with "undefined reference to `xxh32'" from homa_peer.o, and it links with this change.

homa_peer.c uses xxh32 as the rhashtable hash for peers and routes,
but lib/xxhash.c is built only when some option selects XXHASH. In a
config where nothing else does, the kernel fails to link with an
undefined reference to xxh32.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant