Thread (9 messages) flat view 9 messages, 2 authors, 2026-03-17

Re: [PATCH net-next v2 2/3] net: dpaa2-mac: retrieve MAC statistics in one firmware command

From: Jakub Kicinski <kuba@kernel.org>
Date: 2026-03-17 03:41:54
Also in: linux-kselftest, lkml

On Thu, 12 Mar 2026 16:22:48 +0200 Ioana Ciornei wrote:
+	stats->values_dma_mem = kcalloc(num_stats, sizeof(u64), GFP_KERNEL);
+	if (!stats->values_dma_mem)
+		goto err_alloc_values;
+
+	cnt_idx = stats->idx_dma_mem;
+	for (size_t i = 0; i < num_stats; i++)
+		*cnt_idx++ = cpu_to_le32((u32)(counters[i].id));
+
+	stats->idx_iova = dma_map_single(dev, stats->idx_dma_mem,
+					 num_stats * sizeof(u32),
+					 DMA_TO_DEVICE);
+	if (dma_mapping_error(dev, stats->idx_iova))
dma_alloc_noncoherent(), maybe ?
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help