]> git.baikalelectronics.ru Git - kernel.git/commit
net: mvneta: fix dma sync size in mvneta_run_xdp
authorLorenzo Bianconi <lorenzo@kernel.org>
Tue, 14 Jan 2020 10:21:16 +0000 (11:21 +0100)
committerDavid S. Miller <davem@davemloft.net>
Wed, 15 Jan 2020 02:48:08 +0000 (18:48 -0800)
commit9eba422b02668f11cae15ca861bcb797a0d4ad9f
treec47c178fd21367d67ef141275e8bbdb3cd0635e1
parentdf5ee46b73fb35024cf721b32d928ff99fe247a9
net: mvneta: fix dma sync size in mvneta_run_xdp

Page pool API will start syncing (if requested) starting from
page->dma_addr + pool->p.offset. Fix dma sync length in
mvneta_run_xdp since we do not need to account xdp headroom

Fixes: fabf8786d3c9 ("net: mvneta: get rid of huge dma sync in mvneta_rx_refill")
Signed-off-by: Lorenzo Bianconi <lorenzo@kernel.org>
Acked-by: Jesper Dangaard Brouer <brouer@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/marvell/mvneta.c