[PATCH net-next 4/4] net: ethernet: mtk_eth_soc: optimize dma ring address/index calculation

Andrew Lunn andrew at lunn.ch
Tue Oct 15 05:54:23 PDT 2024


On Tue, Oct 15, 2024 at 01:09:38PM +0200, Felix Fietkau wrote:
> Since DMA descriptor sizes are all power of 2, we can avoid costly integer
> division in favor or simple shifts.

Could a BUILD_BUG_ON() be added to validate this?

Do you have some benchmark data for this series? It would be good to
add to a patch 0/4.

Thanks
	Andrew



More information about the Linux-mediatek mailing list