[PATCH v8 05/25] net/failsafe: convert to stdatomic
David Marchand
david.marchand at redhat.com
Tue Sep 29 10:06:33 CEST 2026
On Thu, 17 Sept 2026 at 22:12, Stephen Hemminger
<stephen at networkplumber.org> wrote:
> @@ -440,14 +440,13 @@ fs_rx_queue_setup(struct rte_eth_dev *dev,
> }
> rxq = rte_zmalloc(NULL,
> sizeof(*rxq) +
> - sizeof(rte_atomic64_t) * PRIV(dev)->subs_tail,
> + sizeof(*rxq->refcnt) * PRIV(dev)->subs_tail,
> RTE_CACHE_LINE_SIZE);
> if (rxq == NULL) {
> fs_unlock(dev, 0);
> return -ENOMEM;
> }
> - FOREACH_SUBDEV(sdev, i, dev)
> - rte_atomic64_init(&rxq->refcnt[i]);
> +
> rxq->qid = rx_queue_id;
> rxq->socket_id = socket_id;
> rxq->info.mp = mb_pool;
> @@ -617,14 +616,13 @@ fs_tx_queue_setup(struct rte_eth_dev *dev,
> }
> txq = rte_zmalloc("ethdev TX queue",
> sizeof(*txq) +
> - sizeof(rte_atomic64_t) * PRIV(dev)->subs_tail,
> + sizeof(uint64_t) * PRIV(dev)->subs_tail,
sizeof(*txq->refcnt) for consistency.
> RTE_CACHE_LINE_SIZE);
> if (txq == NULL) {
> fs_unlock(dev, 0);
> return -ENOMEM;
> }
> - FOREACH_SUBDEV(sdev, i, dev)
> - rte_atomic64_init(&txq->refcnt[i]);
> +
> txq->qid = tx_queue_id;
> txq->socket_id = socket_id;
> txq->info.conf = *tx_conf;
--
David Marchand
More information about the dev
mailing list