HomeFreeBSD

LinuxKPI: add simplified vesion of page_frag_cache

Description

LinuxKPI: add simplified vesion of page_frag_cache

For the moment and the currently only consumer (mt76) add a simplified
version of the page_frag_cache. We will only accept fragement sizes up
to 1 PAGE_SIZE (KASSERT) and we will always return a full page.
Should we add more consumers or small (or large) objects would become a
problem we can always add a more elaborate version.

Discussed with: markj
Reviewed by: markj (,hselasky commented as well)
MFC after: 3 days
Differential Revision: https://reviews.freebsd.org/D37595

Details

Provenance
bzAuthored on Dec 3 2022, 12:33 AM
Reviewer
markj
Differential Revision
D37595: LinuxKPI: add simplified vesion of page_frag_cache
Parents
rG4b0af114370a: LinuxKPI: 802.11: move ieee80211_{unregister,restart}_hw out of header
Branches
Unknown
Tags
Unknown