]> git.baikalelectronics.ru Git - kernel.git/commit
net: ethernet: ave: Replace NET_IP_ALIGN with AVE_FRAME_HEADROOM
authorKunihiko Hayashi <hayashi.kunihiko@socionext.com>
Thu, 29 Nov 2018 08:08:37 +0000 (17:08 +0900)
committerDavid S. Miller <davem@davemloft.net>
Thu, 29 Nov 2018 18:38:39 +0000 (10:38 -0800)
commit56c8c64140175582f03d680319e347a6729a4d3a
tree6995c7ce2b4c6e1ea7371af5ea7eaf9934ee76f2
parentaf417c1b0da78a0e92a52a9e6aee612db9d9efba
net: ethernet: ave: Replace NET_IP_ALIGN with AVE_FRAME_HEADROOM

In commit e2e497120aa8 ("arm64: mm: define NET_IP_ALIGN to 0"),
AVE controller affects this modification because the controller forces
to ignore lower 2bits of buffer start address, and make 2-byte headroom,
that is, data reception starts from (buffer + 2).

This patch defines AVE_FRAME_HEADROOM macro as hardware-specific value,
and replaces NET_IP_ALIGN with it.

Signed-off-by: Kunihiko Hayashi <hayashi.kunihiko@socionext.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/socionext/sni_ave.c