[PATCH 0/6] net: stmmac: fix handling of oversized frames

From: Aaro Koskinen
Date: Wed Mar 27 2019 - 16:35:54 EST


From: Aaro Koskinen <aaro.koskinen@xxxxxxxxx>

Hi,

I accidentally had MTU size mismatch (9000 vs. 1500) in my network,
and I noticed I could kill a system using stmmac & 1500 MTU simply
by pinging it with "ping -s 2000 ...".

While testing a fix I encountered also some other issues that need fixing.

I have tested these only with enhanced descriptors, so the normal
descriptor changes need a careful review.

A.

Aaro Koskinen (6):
net: stmmac: use correct DMA buffer size in the RX descriptor
net: stmmac: ratelimit RX error logs
net: stmmac: don't stop NAPI processing when dropping a packet
net: stmmac: don't overwrite discard_frame status
net: stmmac: fix dropping of multi-descriptor RX frames
net: stmmac: don't log oversized frames

.../net/ethernet/stmicro/stmmac/descs_com.h | 22 +++++++-----
.../ethernet/stmicro/stmmac/dwmac4_descs.c | 2 +-
.../ethernet/stmicro/stmmac/dwxgmac2_descs.c | 2 +-
.../net/ethernet/stmicro/stmmac/enh_desc.c | 22 ++++++++----
drivers/net/ethernet/stmicro/stmmac/hwif.h | 2 +-
.../net/ethernet/stmicro/stmmac/norm_desc.c | 12 ++++---
.../net/ethernet/stmicro/stmmac/stmmac_main.c | 34 +++++++++++--------
7 files changed, 59 insertions(+), 37 deletions(-)

--
2.17.0