]> 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)
commitac138abeb1884fa1b23daab29b7c6f81bbd79372
tree6995c7ce2b4c6e1ea7371af5ea7eaf9934ee76f2
parent631980a6bd2fbf1c7233f26dc885e4d85bfc216f
net: ethernet: ave: Replace NET_IP_ALIGN with AVE_FRAME_HEADROOM

In commit 77b4300da4b1 ("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