• Jose Abreu's avatar
    net: stmmac: Introducing support for Page Pool · 2af6106a
    Jose Abreu authored
    Mapping and unmapping DMA region is an high bottleneck in stmmac driver,
    specially in the RX path.
    
    This commit introduces support for Page Pool API and uses it in all RX
    queues. With this change, we get more stable troughput and some increase
    of banwidth with iperf:
    	- MAC1000 - 950 Mbps
    	- XGMAC: 9.22 Gbps
    
    Changes from v3:
    	- Use page_pool_destroy() (Ilias)
    Changes from v2:
    	- Uncoditionally call page_pool_free() (Jesper)
    Changes from v1:
    	- Use page_pool_get_dma_addr() (Jesper)
    	- Add a comment (Jesper)
    	- Add page_pool_free() call (Jesper)
    	- Reintroduce sync_single_for_device (Arnd / Ilias)
    Signed-off-by: default avatarJose Abreu <joabreu@synopsys.com>
    Acked-by: default avatarIlias Apalodimas <ilias.apalodimas@linaro.org>
    Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
    2af6106a
Kconfig 6.06 KB