MCPcopy Create free account
hub / github.com/F-Stack/f-stack / fs_tx_queue_release

Function fs_tx_queue_release

dpdk/drivers/net/failsafe/failsafe_ops.c:561–580  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

559}
560
561static void
562fs_tx_queue_release(struct rte_eth_dev *dev, uint16_t qid)
563{
564 struct sub_device *sdev;
565 uint8_t i;
566 struct txq *txq = dev->data->tx_queues[qid];
567
568 if (txq == NULL)
569 return;
570 if (fs_lock(dev, 0) != 0)
571 return;
572 FOREACH_SUBDEV_STATE(sdev, i, dev, DEV_ACTIVE) {
573 if (ETH(sdev)->data->tx_queues != NULL &&
574 ETH(sdev)->data->tx_queues[txq->qid] != NULL)
575 SUBOPS(sdev, tx_queue_release)(ETH(sdev), txq->qid);
576 }
577 dev->data->tx_queues[txq->qid] = NULL;
578 rte_free(txq);
579 fs_unlock(dev, 0);
580}
581
582static int
583fs_tx_queue_setup(struct rte_eth_dev *dev,

Callers 2

fs_tx_queue_setupFunction · 0.85
fs_dev_free_queuesFunction · 0.85

Calls 4

fs_lockFunction · 0.85
FOREACH_SUBDEV_STATEFunction · 0.85
rte_freeFunction · 0.85
fs_unlockFunction · 0.85

Tested by

no test coverage detected