On Tue, 18 Jan 2022 at 22:03, Jakub Kicinski <kuba@xxxxxxxxxx> wrote: > > On Tue, 18 Jan 2022 11:22:04 +0100 Ard Biesheuvel wrote: > > Both versions of the CPSW driver declare a CPSW_HEADROOM_NA macro that > > takes NET_IP_ALIGN into account, but fail to use it appropriately when > > storing incoming packets in memory. This results in the IPv4 source and > > destination addresses to appear misaligned in memory, which causes > > aligment faults that need to be fixed up in software. > > > > So let's switch from CPSW_HEADROOM to CPSW_HEADROOM_NA where needed. > > This gets rid of any alignment faults on the RX path on a Beaglebone > > White. > > > > Cc: Grygorii Strashko <grygorii.strashko@xxxxxx> > > Cc: Ilias Apalodimas <ilias.apalodimas@xxxxxxxxxx> > > Signed-off-by: Ard Biesheuvel <ardb@xxxxxxxxxx> > > Fixes: 9ed4050c0d75 ("net: ethernet: ti: cpsw: add XDP support") > I suspect so, as that patch removes a call to __netdev_alloc_skb_ip_align(), and replaces it with page_pool_dev_alloc_pages() et al