aboutsummaryrefslogtreecommitdiff
path: root/include/linux/fpga/fpga-bridge.h
diff options
context:
space:
mode:
authorBogdan Purcareata <[email protected]>2017-10-29 08:20:43 +0000
committerGreg Kroah-Hartman <[email protected]>2017-11-03 16:19:27 +0100
commit4b2d9fe8795074626a29579e9afeedd52f1eeb83 (patch)
tree20bd08d5745db35cfb495915e18957075ea6c582 /include/linux/fpga/fpga-bridge.h
parent8a4fd8778b929ac9459ad740f5e9812b2aa87bca (diff)
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 <[email protected]> Signed-off-by: Ioana Radulescu <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'include/linux/fpga/fpga-bridge.h')
0 files changed, 0 insertions, 0 deletions