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

Function rte_dma_stats_reset

dpdk/lib/dmadev/rte_dmadev.c:705–727  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

703}
704
705int
706rte_dma_stats_reset(int16_t dev_id, uint16_t vchan)
707{
708 struct rte_dma_dev *dev = &rte_dma_devices[dev_id];
709 int ret;
710
711 if (!rte_dma_is_valid(dev_id))
712 return -EINVAL;
713
714 if (vchan >= dev->data->dev_conf.nb_vchans &&
715 vchan != RTE_DMA_ALL_VCHAN) {
716 RTE_DMA_LOG(ERR,
717 "Device %d vchan %u out of range", dev_id, vchan);
718 return -EINVAL;
719 }
720
721 if (*dev->dev_ops->stats_reset == NULL)
722 return -ENOTSUP;
723 ret = (*dev->dev_ops->stats_reset)(dev, vchan);
724 rte_dma_trace_stats_reset(dev_id, vchan, ret);
725
726 return ret;
727}
728
729int
730rte_dma_vchan_status(int16_t dev_id, uint16_t vchan, enum rte_dma_vchan_status *status)

Callers 3

test_dma_statsFunction · 0.85
__rte_format_printfFunction · 0.85
test_dmadev_instanceFunction · 0.85

Calls 1

rte_dma_is_validFunction · 0.85

Tested by 3

test_dma_statsFunction · 0.68
__rte_format_printfFunction · 0.68
test_dmadev_instanceFunction · 0.68