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

From: Jakub Kicinski <[email-masked]>
Date: Thu, 6 Nov 2025 16:43:47 -0800

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.