summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorRussell King (Oracle) <rmk+kernel@armlinux.org.uk>2026-03-18 18:26:44 +0000
committerJakub Kicinski <kuba@kernel.org>2026-03-19 17:18:52 -0700
commite73b19baa3b1c8eb909d0990e32c8d596b52be53 (patch)
tree7bd3431562e15b9086babd23b5ad456d889fb1e8 /tools/perf/scripts/python
parent33be7846e4bebb44fb0c09ee92e99cdd111558fd (diff)
net: stmmac: simplify DMA descriptor allocation/init/freeing
Rather than having separate branches to handle the different types of descriptors, use the helper functions to calculate the total size of the DMA descriptors. Use this to allocate or free the descriptor array, and use a local variable to hold the address of the descriptor array, so we only need one dma_alloc_coherent() or dma_free_coherent() call in these paths. Also do the same for the receive ring initialisation. The transmit ring can't be converted as there is a case where stmmac_mode_init() is not called. Signed-off-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk> Link: https://patch.msgid.link/E1w2vbQ-0000000DbWc-0ty5@rmk-PC.armlinux.org.uk Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions