]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commite2e497120aa87eb3fb3ac1401c66aedf6fee4b3c
treee028f8b341426293dd78072515a6dac5a6c10fc2
parent1a1bdeaf52ec74ea753a834b3a6a83e55e963365
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