diff options
author | Aleksander Jan Bajkowski <olek2@wp.pl> | 2021-12-17 01:07:40 +0100 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2021-12-18 04:18:29 +0100 |
commit | 1488fc204568f707fe2a42a913788c00a95af30e (patch) | |
tree | c2f7c8e0c59010d681535888b637acb96116b937 /net/tipc | |
parent | Merge branch 'net-sched-fix-ct-zone-matching-for-invalid-conntrack-state' (diff) | |
download | linux-1488fc204568f707fe2a42a913788c00a95af30e.tar.xz linux-1488fc204568f707fe2a42a913788c00a95af30e.zip |
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