diff options
author | Aaro Koskinen <aaro.koskinen@nokia.com> | 2019-03-27 23:35:39 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2019-05-08 08:21:48 +0300 |
commit | f86c1d3f10a2c280a9ff9fe0a90943659f768742 (patch) | |
tree | 2a0b3dd22f6f35d29e6f31d12894025f80d2da0c /drivers/mfd/rk808.c | |
parent | 0ab012e3df48e163f644f88e0d1110b9c21286d5 (diff) | |
download | linux-f86c1d3f10a2c280a9ff9fe0a90943659f768742.tar.xz |
net: stmmac: fix dropping of multi-descriptor RX frames
[ Upstream commit 8ac0c24fe1c256af6644caf3d311029440ec2fbd ]
Packets without the last descriptor set should be dropped early. If we
receive a frame larger than the DMA buffer, the HW will continue using the
next descriptor. Driver mistakes these as individual frames, and sometimes
a truncated frame (without the LD set) may look like a valid packet.
This fixes a strange issue where the system replies to 4098-byte ping
although the MTU/DMA buffer size is set to 4096, and yet at the same
time it's logging an oversized packet.
Signed-off-by: Aaro Koskinen <aaro.koskinen@nokia.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'drivers/mfd/rk808.c')
0 files changed, 0 insertions, 0 deletions