linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/6] net: stmmac: fix handling of oversized frames
@ 2019-03-27 20:35 Aaro Koskinen
  2019-03-27 20:35 ` [PATCH 1/6] net: stmmac: use correct DMA buffer size in the RX descriptor Aaro Koskinen
                   ` (7 more replies)
  0 siblings, 8 replies; 11+ messages in thread
From: Aaro Koskinen @ 2019-03-27 20:35 UTC (permalink / raw)
  To: David S. Miller, Jose Abreu, Alexandre Torgue,
	Giuseppe Cavallaro, netdev
  Cc: linux-kernel, Aaro Koskinen

From: Aaro Koskinen <aaro.koskinen@nokia.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


^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2019-03-31 21:01 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-03-27 20:35 [PATCH 0/6] net: stmmac: fix handling of oversized frames Aaro Koskinen
2019-03-27 20:35 ` [PATCH 1/6] net: stmmac: use correct DMA buffer size in the RX descriptor Aaro Koskinen
2019-03-29 10:02   ` Jose Abreu
2019-03-29 10:48     ` Aaro Koskinen
2019-03-27 20:35 ` [PATCH 2/6] net: stmmac: ratelimit RX error logs Aaro Koskinen
2019-03-27 20:35 ` [PATCH 3/6] net: stmmac: don't stop NAPI processing when dropping a packet Aaro Koskinen
2019-03-27 20:35 ` [PATCH 4/6] net: stmmac: don't overwrite discard_frame status Aaro Koskinen
2019-03-27 20:35 ` [PATCH 5/6] net: stmmac: fix dropping of multi-descriptor RX frames Aaro Koskinen
2019-03-27 20:35 ` [PATCH 6/6] net: stmmac: don't log oversized frames Aaro Koskinen
2019-03-29  0:10 ` [PATCH 0/6] net: stmmac: fix handling of " David Miller
2019-03-31 21:01 ` David Miller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).