]> git.baikalelectronics.ru Git - kernel.git/commit
dpaa2-eth: extract the S/G table buffer cache interaction into functions
authorIoana Ciornei <ioana.ciornei@nxp.com>
Wed, 9 Feb 2022 09:23:31 +0000 (11:23 +0200)
committerDavid S. Miller <davem@davemloft.net>
Wed, 9 Feb 2022 13:15:34 +0000 (13:15 +0000)
commit644e7cf868fb86ebcbad92ec21fcfbe27e0b4802
tree402527863b34e63096a42314105df92959866c81
parente0451422eaf1b04c434ad38e1d97f50a05cbfcec
dpaa2-eth: extract the S/G table buffer cache interaction into functions

The dpaa2-eth driver uses in certain circumstances a buffer cache for
the S/G tables needed in case of a S/G FD. At the moment, the
interraction with the cache is open-coded and couldn't be reused easily.

Add two new functions - dpaa2_eth_sgt_get and dpaa2_eth_sgt_recycle -
which help with code reusability.

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