diff options
| author | Aaro Koskinen <aaro.koskinen@nokia.com> | 2019-03-27 23:35:39 +0300 |
|---|---|---|
| committer | David S. Miller <davem@davemloft.net> | 2019-04-01 00:00:59 +0300 |
| commit | 8ac0c24fe1c256af6644caf3d311029440ec2fbd (patch) | |
| tree | 2440007b002f78e11a6f585c6b55cce877256cd2 /net/lapb/lapb_subr.c | |
| parent | 1b746ce8b397e58f9e40ce5c63b7198de6930482 (diff) | |
| download | linux-8ac0c24fe1c256af6644caf3d311029440ec2fbd.tar.xz | |
net: stmmac: fix dropping of multi-descriptor RX frames
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>
Diffstat (limited to 'net/lapb/lapb_subr.c')
0 files changed, 0 insertions, 0 deletions
