From: Eric Nelson Date: Thu, 15 Mar 2012 18:33:24 +0000 (+0000) Subject: net: force PKTALIGN to ARCH_DMA_MINALIGN X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=2c4b3c19a1fe1c4e9ef1ec457cf34821368288d7;p=project%2Fbcm63xx%2Fu-boot.git net: force PKTALIGN to ARCH_DMA_MINALIGN This will prevent the need for architectures whose DMA alignment is greater than 32 to have bounce buffers. Signed-off-by: Eric Nelson --- diff --git a/include/net.h b/include/net.h index 556078518b..ee11f82ccc 100644 --- a/include/net.h +++ b/include/net.h @@ -16,6 +16,7 @@ #include #endif /* CONFIG_8xx */ +#include #include /* for nton* / ntoh* stuff */ @@ -31,7 +32,7 @@ # define PKTBUFSRX 4 #endif -#define PKTALIGN 32 +#define PKTALIGN ARCH_DMA_MINALIGN /* IPv4 addresses are always 32 bits in size */ typedef u32 IPaddr_t;