staging: fsl-dpaa2/eth: Make Tx buffer alignment optional
authorIoana Radulescu <ruxandra.radulescu@nxp.com>
Fri, 8 Dec 2017 12:47:58 +0000 (06:47 -0600)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 8 Dec 2017 15:33:29 +0000 (16:33 +0100)
commitc163685fc886037b83e27cfc1d9efffd00e7a5bf
treea89a51222e5d060a53565e83cc6e79ff56fd8ca0
parent18c21467b2162107891f15ce1da4350b4e7016a3
staging: fsl-dpaa2/eth: Make Tx buffer alignment optional

Aligning the Tx buffers at 64B is a performance optimization
recommendation, not a hard requirement.

Make optional the alignment of Tx FD buffers, without enforcing
a reallocation in case there is not enough headroom for it.

On Rx, we keep allocating buffers with enough headroom to allow
Tx alignment of forwarded frames.

Signed-off-by: Ioana Radulescu <ruxandra.radulescu@nxp.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/fsl-dpaa2/ethernet/dpaa2-eth.c
drivers/staging/fsl-dpaa2/ethernet/dpaa2-eth.h