Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

staging: fsl-dpaa2/eth: Don't account SWA in tx_data_offset

When configuring the Tx buffer layout, the software annotation size is
mentioned, and MC accounts for it when configuring the frame
tx_data_offset. No need to handle it in the driver as well.

This results in 64B less memory allocated per frame.

Signed-off-by: Bogdan Purcareata <bogdan.purcareata@nxp.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Bogdan Purcareata and committed by
Greg Kroah-Hartman
3c219286 308f64e7

-3
-3
drivers/staging/fsl-dpaa2/ethernet/dpaa2-eth.c
··· 1872 1872 dev_warn(dev, "Tx data offset (%d) not a multiple of 64B\n", 1873 1873 priv->tx_data_offset); 1874 1874 1875 - /* Accommodate software annotation space (SWA) */ 1876 - priv->tx_data_offset += DPAA2_ETH_SWA_SIZE; 1877 - 1878 1875 return 0; 1879 1876 1880 1877 close: