Skip to content
Commit d0dfbb99 authored by Kevin Hao's avatar Kevin Hao Committed by Jakub Kicinski
Browse files

net: dpaa2: Use napi_alloc_frag_align() to avoid the memory waste



The napi_alloc_frag_align() will guarantee that a correctly align
buffer address is returned. So use this function to simplify the buffer
alloc and avoid the unnecessary memory waste.

Signed-off-by: default avatarKevin Hao <haokexin@gmail.com>
Reviewed-by: default avatarIoana Ciornei <ioana.ciornei@nxp.com>
Signed-off-by: default avatarJakub Kicinski <kuba@kernel.org>
parent 1b041601
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment