summaryrefslogtreecommitdiff
path: root/net/tipc
diff options
context:
space:
mode:
authorAleksander Jan Bajkowski <olek2@wp.pl>2021-12-17 01:07:40 +0100
committerJakub Kicinski <kuba@kernel.org>2021-12-17 19:18:29 -0800
commit1488fc204568f707fe2a42a913788c00a95af30e (patch)
treec2f7c8e0c59010d681535888b637acb96116b937 /net/tipc
parent14193d57c81456541256e2545865d0f9536794eb (diff)
net: lantiq_xrx200: increase buffer reservation
If the user sets a lower mtu on the CPU port than on the switch, then DMA inserts a few more bytes into the buffer than expected. In the worst case, it may exceed the size of the buffer. The experiments showed that the buffer should be a multiple of the burst length value. This patch rounds the length of the rx buffer upwards and fixes this bug. The reservation of FCS space in the buffer has been removed as PMAC strips the FCS. Fixes: 998ac358019e ("net: lantiq: add support for jumbo frames") Reported-by: Thomas Nixon <tom@tomn.co.uk> Signed-off-by: Aleksander Jan Bajkowski <olek2@wp.pl> Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'net/tipc')
0 files changed, 0 insertions, 0 deletions