]> git.baikalelectronics.ru Git - kernel.git/commit
dpaa_eth: DPAA SGT needs to be 256B
authorMadalin Bucur <madalin.bucur@nxp.com>
Thu, 28 Jun 2018 12:26:51 +0000 (15:26 +0300)
committerDavid S. Miller <davem@davemloft.net>
Sat, 30 Jun 2018 09:51:06 +0000 (18:51 +0900)
commit1b6e03c430633b348c0097d05dba9f1b0e8a560c
treea2105e0eabebf2e5b624af4d2f680b2d80f47737
parent47d413efd1562370a03745667320c51379a05086
dpaa_eth: DPAA SGT needs to be 256B

The DPAA HW requires that at least 256 bytes from the start of the
first scatter-gather table entry are allocated and accessible. The
hardware reads the maximum size the table can have in one access,
thus requiring that the allocation and mapping to be done for the
maximum size of 256B even if there is a smaller number of entries
in the table.

Signed-off-by: Madalin Bucur <madalin.bucur@nxp.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/freescale/dpaa/dpaa_eth.c