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@xxxxxxxxxxxxxx> Signed-off-by: Steffen Trumtrar <s.trumtrar@xxxxxxxxxxxxxx> --- 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