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

net: octeontx2: 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>
Tested-by: default avatarSubbaraya Sundeep <sbhatta@marvell.com>
Signed-off-by: default avatarJakub Kicinski <kuba@kernel.org>
parent 3f6e687d
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