OSDN Git Service

arm64: mm: define NET_IP_ALIGN to 0
authorArd Biesheuvel <ard.biesheuvel@linaro.org>
Wed, 7 Nov 2018 17:10:38 +0000 (18:10 +0100)
committerCatalin Marinas <catalin.marinas@arm.com>
Thu, 8 Nov 2018 17:50:26 +0000 (17:50 +0000)
commit26a4676faa1ad5d99317e0cd701e5d6f3e716b77
treee028f8b341426293dd78072515a6dac5a6c10fc2
parent313a06e636808387822af24c507cba92703568b1
arm64: mm: define NET_IP_ALIGN to 0

On arm64, there is no need to add 2 bytes of padding to the start of
each network buffer just to make the IP header appear 32-bit aligned.

Since this might actually adversely affect DMA performance some
platforms, let's override NET_IP_ALIGN to 0 to get rid of this
padding.

Acked-by: Ilias Apalodimas <ilias.apalodimas@linaro.org>
Tested-by: Ilias Apalodimas <ilias.apalodimas@linaro.org>
Acked-by: Mark Rutland <mark.rutland@arm.com>
Acked-by: Will Deacon <will.deacon@arm.com>
Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
arch/arm64/include/asm/processor.h