OSDN Git Service

stmmac: prefetch right address
authorMatteo Croce <mcroce@microsoft.com>
Wed, 9 Jun 2021 17:23:03 +0000 (19:23 +0200)
committerDavid S. Miller <davem@davemloft.net>
Wed, 9 Jun 2021 22:40:09 +0000 (15:40 -0700)
commit4744bf072b4640c5e2ea65c2361ad6c832f28fa8
treea444d43c8cd40b99d6f7190b73b23a47abf9ad89
parentf3b5a8907543e2c539d09d01a1732826e070d351
stmmac: prefetch right address

To support XDP, a headroom is prepended to the packet data.
Consider this offset when doing a prefetch.

Fixes: da5ec7f22a0f ("net: stmmac: refactor stmmac_init_rx_buffers for stmmac_reinit_rx_buffers")
Signed-off-by: Matteo Croce <mcroce@microsoft.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/stmicro/stmmac/stmmac_main.c