dpaa2-eth: extract the S/G table buffer cache interaction into functions