driver: net: ldpaa: Fix Rx buffer alignment
authorPrabhakar Kushwaha <prabhakar@freescale.com>
Wed, 4 Nov 2015 06:56:02 +0000 (12:26 +0530)
committerYork Sun <yorksun@freescale.com>
Mon, 30 Nov 2015 16:53:03 +0000 (08:53 -0800)
commit14480454c76d0f0bc4c5828cc1f054ba6278530e
tree8b8e6a563d08e254d7a4593e1e426a80d0d17956
parent5038d3e5f23ad979c05fa339284576ccb7e90c07
driver: net: ldpaa: Fix Rx buffer alignment

MC 0.7.1.2 enforces limitation i.e.: "Packets may be corrupted
in several combinations of buffer size and frame offsets.
Workaround: Use buffers that are of size that is a multiple of 256, and
frame offset that is a multiple of 256"

Updating the DPNI Eth driver to comply with the restriction.

Signed-off-by: Bogdan Hamciuc <bogdan.hamciuc@freescale.com>
Signed-off-by: Prabhakar Kushwaha <prabhakar@freescale.com>
Reviewed-by: York Sun <yorksun@freescale.com>
drivers/net/ldpaa_eth/ldpaa_eth.c
drivers/net/ldpaa_eth/ldpaa_eth.h