net: octeontx2: Use napi_alloc_frag_align() to avoid the memory waste
authorKevin Hao <haokexin@gmail.com>
Thu, 4 Feb 2021 10:56:37 +0000 (18:56 +0800)
committerJakub Kicinski <kuba@kernel.org>
Sat, 6 Feb 2021 19:57:29 +0000 (11:57 -0800)
commit1b041601c798a1a6bb3a651ce17aefd41979a1e2
tree3d937586e535d897a871c8ea14bf065dd8d9bae4
parent3f6e687dff395da43b056c18150a423bc7bf5d14
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: Kevin Hao <haokexin@gmail.com>
Tested-by: Subbaraya Sundeep <sbhatta@marvell.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/marvell/octeontx2/nic/otx2_common.c