]> 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)
commit77b4300da4b149f614e4e34ae9a543e0a230ff37
treee028f8b341426293dd78072515a6dac5a6c10fc2
parent999409df5b7acd619d1f0f0c71818119de7ca28d
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