summaryrefslogtreecommitdiffstats
path: root/include/net/xsk_buff_pool.h
diff options
context:
space:
mode:
authorAlexander Lobakin <aleksander.lobakin@intel.com>2024-05-07 13:20:25 +0200
committerChristoph Hellwig <hch@lst.de>2024-05-08 08:51:20 +0200
commit4321de4497b24fbf22389331f4ecd4039a451aa9 (patch)
treee0f76978ed7a9adc527fdbb21ebe59df449cdf9d /include/net/xsk_buff_pool.h
parent403f11ac9ab72fc3bee0b8c80c16e33212ea8cd9 (diff)
downloadlinux-4321de4497b24fbf22389331f4ecd4039a451aa9.tar.gz
linux-4321de4497b24fbf22389331f4ecd4039a451aa9.tar.bz2
linux-4321de4497b24fbf22389331f4ecd4039a451aa9.zip
page_pool: check for DMA sync shortcut earlier
We can save a couple more function calls in the Page Pool code if we check for dma_need_sync() earlier, just when we test pp->p.dma_sync. Move both these checks into an inline wrapper and call the PP wrapper over the generic DMA sync function only when both are true. You can't cache the result of dma_need_sync() in &page_pool, as it may change anytime if an SWIOTLB buffer is allocated or mapped. Signed-off-by: Alexander Lobakin <aleksander.lobakin@intel.com> Signed-off-by: Christoph Hellwig <hch@lst.de>
Diffstat (limited to 'include/net/xsk_buff_pool.h')
0 files changed, 0 insertions, 0 deletions