]> git.baikalelectronics.ru Git - kernel.git/commit
net: dpaa2: Use napi_alloc_frag_align() to avoid the memory waste
authorKevin Hao <haokexin@gmail.com>
Thu, 4 Feb 2021 10:56:38 +0000 (18:56 +0800)
committerJakub Kicinski <kuba@kernel.org>
Sat, 6 Feb 2021 19:57:29 +0000 (11:57 -0800)
commit484b3a3fda4c19f97b01733718b064062c8fe97c
treed15cb81d2e5f49a4f783dd94da3d2ad02a9abfdd
parentb05fdb08316e864b391523a3ae72453a034cbb62
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: Kevin Hao <haokexin@gmail.com>
Reviewed-by: Ioana Ciornei <ioana.ciornei@nxp.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/freescale/dpaa2/dpaa2-eth.c