aboutsummaryrefslogtreecommitdiffstats
path: root/Kbuild
diff options
context:
space:
mode:
authorBogdan Purcareata <bogdan.purcareata@nxp.com>2017-10-29 08:20:43 +0000
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2017-11-03 16:19:27 +0100
commit4b2d9fe8795074626a29579e9afeedd52f1eeb83 (patch)
tree20bd08d5745db35cfb495915e18957075ea6c582 /Kbuild
parentstaging: fsl-dpaa2/eth: Change RX buffer alignment (diff)
downloadlinux-dev-4b2d9fe8795074626a29579e9afeedd52f1eeb83.tar.xz
linux-dev-4b2d9fe8795074626a29579e9afeedd52f1eeb83.zip
staging: fsl-dpaa2/eth: Extra headroom in RX buffers
The needed headroom that we ask the stack to reserve for us in TX skbs is larger than the headroom available in RX frames, which leads to skb reallocations in forwarding scenarios involving two DPNI interfaces. Configure the hardware to reserve some extra space in the RX frame headroom to avoid this situation. The value is chosen based on the Tx frame data offset, the Rx buffer alignment value and the netdevice required headroom. The network stack will take care to reserve space for HH_DATA_MOD when building the skb, so there's no need to account for it in the netdevice needed headroom. Signed-off-by: Bogdan Purcareata <bogdan.purcareata@nxp.com> Signed-off-by: Ioana Radulescu <ruxandra.radulescu@nxp.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'Kbuild')
0 files changed, 0 insertions, 0 deletions