Skip to content
Commit b3231d35 authored by Benjamin Berg's avatar Benjamin Berg Committed by Johannes Berg
Browse files

kunit: add a convenience allocation wrapper for SKBs



Add a simple convenience helper to allocate and zero fill an SKB for the
use by a kunit test. Also provide a way to free it again in case that
may be desirable.

This simply mirrors the kunit_kmalloc API.

Signed-off-by: default avatarBenjamin Berg <benjamin.berg@intel.com>
Reviewed-by: default avatarDavid Gow <davidgow@google.com>
Link: https://msgid.link/20231220151952.415232-3-benjamin@sipsolutions.net


[adjust file description as discussed]
Signed-off-by: default avatarJohannes Berg <johannes.berg@intel.com>
parent 292010ee
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment