aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/freescale/dpaa2/dpaa2-eth.c
diff options
context:
space:
mode:
authorKevin Hao <haokexin@gmail.com>2021-02-04 18:56:37 +0800
committerJakub Kicinski <kuba@kernel.org>2021-02-06 11:57:29 -0800
commit1b041601c798a1a6bb3a651ce17aefd41979a1e2 (patch)
tree3d937586e535d897a871c8ea14bf065dd8d9bae4 /drivers/net/ethernet/freescale/dpaa2/dpaa2-eth.c
parentnet: Introduce {netdev,napi}_alloc_frag_align() (diff)
downloadlinux-dev-1b041601c798a1a6bb3a651ce17aefd41979a1e2.tar.xz
linux-dev-1b041601c798a1a6bb3a651ce17aefd41979a1e2.zip
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>
Diffstat (limited to 'drivers/net/ethernet/freescale/dpaa2/dpaa2-eth.c')
0 files changed, 0 insertions, 0 deletions