[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20190327203540.1884-1-aaro.koskinen@iki.fi>
Date: Wed, 27 Mar 2019 22:35:34 +0200
From: Aaro Koskinen <aaro.koskinen@....fi>
To: "David S. Miller" <davem@...emloft.net>,
Jose Abreu <joabreu@...opsys.com>,
Alexandre Torgue <alexandre.torgue@...com>,
Giuseppe Cavallaro <peppe.cavallaro@...com>,
netdev@...r.kernel.org
Cc: linux-kernel@...r.kernel.org,
Aaro Koskinen <aaro.koskinen@...ia.com>
Subject: [PATCH 0/6] net: stmmac: fix handling of oversized frames
From: Aaro Koskinen <aaro.koskinen@...ia.com>
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
Powered by blists - more mailing lists