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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 24 Aug 2018 11:09:10 +0000 (13:09 +0200)
commitf06fae1641947549fefbef01cdec1f6c314f53a2
tree4e8b839f2eb2420d43041d087b79cd8a824e7dc5
parentfba7c43d9368d90022d74a4716f33de3a6934e9b
dpaa_eth: DPAA SGT needs to be 256B

[ Upstream commit 595e802e53f24642a145cf7f3e4ac9afab4c21ec ]

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>
Signed-off-by: Sasha Levin <alexander.levin@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/ethernet/freescale/dpaa/dpaa_eth.c