[PATCH v4 3/3] include: net: align PKTSIZE to 64 bytes
Steffen Trumtrar
s.trumtrar at pengutronix.de
Fri Dec 1 05:51:29 PST 2023
PKTSIZE is used to allocate network packet storage.
Make it fill a cache line so drivers using it don't accidentally flush
adjacent packets.
Suggested-by: Ahmad Fatoum <a.fatoum at pengutronix.de>
Signed-off-by: Steffen Trumtrar <s.trumtrar at pengutronix.de>
---
include/net.h | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/include/net.h b/include/net.h
index a0ef8bee04..63109465f9 100644
--- a/include/net.h
+++ b/include/net.h
@@ -236,9 +236,9 @@ struct icmphdr {
* Maximum packet size; used to allocate packet storage.
* TFTP packets can be 524 bytes + IP header + ethernet header.
* Lets be conservative, and go for 38 * 16. (Must also be
- * a multiple of 32 bytes).
+ * a multiple of 64 bytes).
*/
-#define PKTSIZE 1518
+#define PKTSIZE 1536
/**********************************************************************/
/*
--
2.40.1
More information about the barebox
mailing list