From: Ahmad Fatoum <a.fatoum@pengutronix.de>
To: barebox@lists.infradead.org
Subject: [PATCH 0/7] net: replace global NetRxPackets arrays with per-interface allocation
Date: Wed, 13 Mar 2024 12:06:57 +0100 [thread overview]
Message-ID: <20240313110704.1095554-1-a.fatoum@pengutronix.de> (raw)
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
next reply other threads:[~2024-03-13 11:07 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-03-13 11:06 Ahmad Fatoum [this message]
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20240313110704.1095554-1-a.fatoum@pengutronix.de \
--to=a.fatoum@pengutronix.de \
--cc=barebox@lists.infradead.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox