Alignment issues with freescale FEC driver
David Miller
davem at davemloft.net
Fri Sep 23 19:43:05 PDT 2016
From: Eric Nelson <eric at nelint.com>
Date: Fri, 23 Sep 2016 10:33:29 -0700
> Since the hardware requires longword alignment for its' DMA transfers,
> aligning the IP header will require a memcpy, right?
I wish hardware designers didn't do this.
There is no conflict between DMA alignment and properly offseting
the packet data by two bytes.
All hardware designers have to do is allow 2 padding bytes to be
emitted by the chip before the actual packet data.
Then the longword or whatever DMA transfer alignment is met
whilst still giving the necessary flexibility for where the
packet data lands.
More information about the linux-arm-kernel
mailing list