net: mvneta: get rid of huge dma sync in mvneta_rx_refill
authorLorenzo Bianconi <lorenzo@kernel.org>
Wed, 20 Nov 2019 14:54:19 +0000 (16:54 +0200)
committerDavid S. Miller <davem@davemloft.net>
Wed, 20 Nov 2019 20:34:29 +0000 (12:34 -0800)
commit07e13edbb6a6a9a407d6772a355836270e924aa8
tree652f59998ff9dcb329f619c27fcae1aea50bd105
parente68bc75691cc3de608c2c7505057c948d13ae587
net: mvneta: get rid of huge dma sync in mvneta_rx_refill

Get rid of costly dma_sync_single_for_device in mvneta_rx_refill
since now the driver can let page_pool API to manage needed DMA
sync with a proper size.

- XDP_DROP DMA sync managed by mvneta driver: ~420Kpps
- XDP_DROP DMA sync managed by page_pool API: ~585Kpps

Tested-by: Matteo Croce <mcroce@redhat.com>
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