Thread (29 messages) 29 messages, 5 authors, 2025-11-20

Re: [PATCH net-next v4 13/14] netkit: Add io_uring zero-copy support for TCP

From: Jakub Kicinski <kuba@kernel.org>
Date: 2025-11-07 00:43:49
Also in: bpf

On Fri, 31 Oct 2025 22:21:02 +0100 Daniel Borkmann wrote:
+static struct device *netkit_queue_get_dma_dev(struct net_device *dev, int idx)
+{
+	struct netdev_rx_queue *rxq, *peer_rxq;
+	unsigned int peer_idx;
+
+	rxq = __netif_get_rx_queue(dev, idx);
+	if (!rxq->peer)
+		return NULL;
+
+	peer_rxq = rxq->peer;
+	peer_idx = get_netdev_rx_queue_index(peer_rxq);
+
+	return netdev_queue_get_dma_dev(peer_rxq->dev, peer_idx);
+}
Doesn't look netkit specific at all, let's move it into the core
helper.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help