[PATCH 0/7] net: replace global NetRxPackets arrays with per-interface allocation
Ahmad Fatoum
a.fatoum at pengutronix.de
Wed Mar 13 04:06:57 PDT 2024
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
More information about the barebox
mailing list