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

Function ntb_queue_release

dpdk/drivers/raw/ntb/ntb.c:478–492  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

476}
477
478static int
479ntb_queue_release(struct rte_rawdev *dev, uint16_t queue_id)
480{
481 struct ntb_hw *hw = dev->dev_private;
482
483 if (queue_id >= hw->queue_pairs)
484 return -EINVAL;
485
486 ntb_txq_release(hw->tx_queues[queue_id]);
487 hw->tx_queues[queue_id] = NULL;
488 ntb_rxq_release(hw->rx_queues[queue_id]);
489 hw->rx_queues[queue_id] = NULL;
490
491 return 0;
492}
493
494static uint16_t
495ntb_queue_count(struct rte_rawdev *dev)

Callers 1

ntb_dev_closeFunction · 0.85

Calls 2

ntb_txq_releaseFunction · 0.85
ntb_rxq_releaseFunction · 0.85

Tested by

no test coverage detected