]> git.baikalelectronics.ru Git - kernel.git/commit
dpaa2-eth: allocate a fragment already aligned
authorIoana Ciornei <ioana.ciornei@nxp.com>
Wed, 9 Feb 2022 09:23:30 +0000 (11:23 +0200)
committerDavid S. Miller <davem@davemloft.net>
Wed, 9 Feb 2022 13:15:34 +0000 (13:15 +0000)
commite0451422eaf1b04c434ad38e1d97f50a05cbfcec
treec93f2952a5cda85d70258f4d97efb64a8cad5594
parent985027e7003c904c687fb73b09b88e49a18501e7
dpaa2-eth: allocate a fragment already aligned

Instead of allocating memory and then manually aligning it to the
desired value use napi_alloc_frag_align() directly to streamline the
process.

Signed-off-by: Ioana Ciornei <ioana.ciornei@nxp.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/freescale/dpaa2/dpaa2-eth.c