diff options
Diffstat (limited to 'arch/arm64/include/asm/processor.h')
-rw-r--r-- | arch/arm64/include/asm/processor.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/arch/arm64/include/asm/processor.h b/arch/arm64/include/asm/processor.h index 3e2091708b8e..6b0d4dff5012 100644 --- a/arch/arm64/include/asm/processor.h +++ b/arch/arm64/include/asm/processor.h | |||
@@ -24,6 +24,14 @@ | |||
24 | #define KERNEL_DS UL(-1) | 24 | #define KERNEL_DS UL(-1) |
25 | #define USER_DS (TASK_SIZE_64 - 1) | 25 | #define USER_DS (TASK_SIZE_64 - 1) |
26 | 26 | ||
27 | /* | ||
28 | * On arm64 systems, unaligned accesses by the CPU are cheap, and so there is | ||
29 | * no point in shifting all network buffers by 2 bytes just to make some IP | ||
30 | * header fields appear aligned in memory, potentially sacrificing some DMA | ||
31 | * performance on some platforms. | ||
32 | */ | ||
33 | #define NET_IP_ALIGN 0 | ||
34 | |||
27 | #ifndef __ASSEMBLY__ | 35 | #ifndef __ASSEMBLY__ |
28 | #ifdef __KERNEL__ | 36 | #ifdef __KERNEL__ |
29 | 37 | ||