Re: [PATCH net-next v3 4/6] net: bcmgenet: add XDP_TX support

Mohsin Bashir
2026-03-30T18:16:01Z

> +static bool
> +bcmgenet_xdp_xmit_frame(struct bcmgenet_priv *priv,
> + struct xdp_frame *xdpf, bool dma_map)
> +{
> + struct bcmgenet_tx_ring *ring = &priv->tx_rings[DESC_INDEX];
> + struct device *kdev = &priv->pdev->dev;
> + struct enet_cb *tx_cb_ptr;
> + dma_addr_t mapping;
> + unsigned int dma_len;
> + u32 len_stat;
> +
> + spin_lock(&ring->lock);
> +

So we acquire lock on per-packet basis on the XDP_TX path? Do you think
we can batch this?