Thread (9 messages) read the whole thread 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: Ioana Ciornei <ioana.ciornei@nxp.com>
Date: 2026-03-17 08:21:40
Also in: linux-kselftest, lkml

On Mon, Mar 16, 2026 at 08:41:53PM -0700, Jakub Kicinski wrote:
On Thu, 12 Mar 2026 16:22:48 +0200 Ioana Ciornei wrote:
quoted
+	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 ?
Ok, will do.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help