mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* [PATCH 0/7] net: replace global NetRxPackets arrays with per-interface allocation
@ 2024-03-13 11:06 Ahmad Fatoum
  2024-03-13 11:06 ` [PATCH 1/7] net: add net_alloc_packets helper Ahmad Fatoum
                   ` (7 more replies)
  0 siblings, 8 replies; 9+ messages in thread
From: Ahmad Fatoum @ 2024-03-13 11:06 UTC (permalink / raw)
  To: barebox

Drivers using NetRxPackets can't be combined into the same barebox build
without clobbering each other when receiving packets. Even having the
same driver twice would lead to issues.

We certainly don't want to encourage new network drivers to use this
global array, so let's just get rid of it.

Ahmad Fatoum (7):
  net: add net_alloc_packets helper
  net: ep93xx: replace global NetRxPackets with per-interface allocation
  net: enc28j60: replace global NetRxPackets with per-interface
    allocation
  net: gianfar: replace global NetRxPackets with per-interface
    allocation
  net: ethoc: replace global NetRxPackets with per-interface allocation
  net: cpsw: replace global NetRxPackets with per-interface allocation
  net: retire global NetRxPackets arrays

 drivers/net/cpsw.c     |  8 +++++++-
 drivers/net/enc28j60.c |  6 ++++--
 drivers/net/ep93xx.c   | 16 +++++++++++++---
 drivers/net/ethoc.c    | 10 +++++++++-
 drivers/net/gianfar.c  | 14 +++++++-------
 drivers/net/gianfar.h  |  6 ++++++
 include/net.h          | 10 ++++++++--
 net/net.c              | 26 ++++++++++++++++++++++----
 8 files changed, 76 insertions(+), 20 deletions(-)

-- 
2.39.2




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

end of thread, other threads:[~2024-03-13 11:39 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-03-13 11:06 [PATCH 0/7] net: replace global NetRxPackets arrays with per-interface allocation Ahmad Fatoum
2024-03-13 11:06 ` [PATCH 1/7] net: add net_alloc_packets helper Ahmad Fatoum
2024-03-13 11:06 ` [PATCH 2/7] net: ep93xx: replace global NetRxPackets with per-interface allocation Ahmad Fatoum
2024-03-13 11:07 ` [PATCH 3/7] net: enc28j60: " Ahmad Fatoum
2024-03-13 11:07 ` [PATCH 4/7] net: gianfar: " Ahmad Fatoum
2024-03-13 11:07 ` [PATCH 5/7] net: ethoc: " Ahmad Fatoum
2024-03-13 11:07 ` [PATCH 6/7] net: cpsw: " Ahmad Fatoum
2024-03-13 11:07 ` [PATCH 7/7] net: retire global NetRxPackets arrays Ahmad Fatoum
2024-03-13 11:38 ` [PATCH 0/7] net: replace global NetRxPackets arrays with per-interface allocation Sascha Hauer

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