ARM: DaVinci: EMAC: Fix alignment traps on packet reception
The skb data allocated for packet data received is 4 byte aligned. Unfortunately, this causes non-32bit aligned accesses in IP stack because the MAC header is non-word aligned (14 bytes). The result can be observed by looking at /proc/cpu/alignment while the device is over network. Doing an skb_reserve(NET_IP_ALIGN) as other driver do fixed the issue. A quick performance test over lab network using iperf on DM6446 EVM showed an increase in bandwidth from 60Mbits/s to 70Mbits/s. Signed-off-by: Steve Chen <schen@mvista.com> Signed-off-by: Sekhar Nori <nsekhar@ti.com> Signed-off-by: Kevin Hilman <khilman@deeprootsystems.com>
Showing
Please register or sign in to comment