mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* [PATCH 0/9] Reduce usage of NetRxPackets[]
@ 2022-09-19  8:01 Sascha Hauer
  2022-09-19  8:01 ` [PATCH 1/9] net: tap: Allocate own receive buffer Sascha Hauer
                   ` (8 more replies)
  0 siblings, 9 replies; 10+ messages in thread
From: Sascha Hauer @ 2022-09-19  8:01 UTC (permalink / raw)
  To: Barebox List

Usage of the globally allocted network receive buffers NetRxPackets[] is
inherently broken. Some drivers queue these buffers in the hardware.
When multiple of these drivers are active at the same time then they
stamp over each others packets and bad things happen.

The goal is to remove NetRxPackets[] entirely in favor of per device
packet buffers. This series is a first step into that direction. It
removes the simple cases where only NetRxPackets[0] is used to store the
single packet that is pulled out of the hardware before net_receive() is
called.

Sascha

Sascha Hauer (9):
  net: tap: Allocate own receive buffer
  net: macb: Allocate own receive buffer
  net: cs8900: Allocate own receive buffer
  net: liteeth: Do not use NetRxPackets
  net: efi-snp: Allocate own receive buffer
  net: smc91111: Allocate own receive buffer
  net: smc911x: Allocate own receive buffer
  net: ks8851_mll: Allocate own receive buffer
  net: remove altera_tse driver

 drivers/net/Kconfig      |  16 --
 drivers/net/Makefile     |   1 -
 drivers/net/altera_tse.c | 563 ---------------------------------------
 drivers/net/altera_tse.h | 296 --------------------
 drivers/net/cs8900.c     |   7 +-
 drivers/net/efi-snp.c    |   6 +-
 drivers/net/ks8851_mll.c |   9 +-
 drivers/net/liteeth.c    |   8 +-
 drivers/net/macb.c       |  12 +-
 drivers/net/smc91111.c   |  10 +-
 drivers/net/smc911x.c    |   8 +-
 drivers/net/tap.c        |   7 +-
 12 files changed, 45 insertions(+), 898 deletions(-)
 delete mode 100644 drivers/net/altera_tse.c
 delete mode 100644 drivers/net/altera_tse.h

-- 
2.30.2




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

end of thread, other threads:[~2022-09-19  8:03 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-09-19  8:01 [PATCH 0/9] Reduce usage of NetRxPackets[] Sascha Hauer
2022-09-19  8:01 ` [PATCH 1/9] net: tap: Allocate own receive buffer Sascha Hauer
2022-09-19  8:01 ` [PATCH 2/9] net: macb: " Sascha Hauer
2022-09-19  8:01 ` [PATCH 3/9] net: cs8900: " Sascha Hauer
2022-09-19  8:01 ` [PATCH 4/9] net: liteeth: Do not use NetRxPackets Sascha Hauer
2022-09-19  8:01 ` [PATCH 5/9] net: efi-snp: Allocate own receive buffer Sascha Hauer
2022-09-19  8:01 ` [PATCH 6/9] net: smc91111: " Sascha Hauer
2022-09-19  8:01 ` [PATCH 7/9] net: smc911x: " Sascha Hauer
2022-09-19  8:01 ` [PATCH 8/9] net: ks8851_mll: " Sascha Hauer
2022-09-19  8:01 ` [PATCH 9/9] net: remove altera_tse driver Sascha Hauer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox