[PATCH v3 1/6] common/idpf: add hw statistics
Wu, Jingjing
jingjing.wu at intel.com
Wed Feb 1 09:48:46 CET 2023
> @@ -327,6 +407,11 @@ idpf_dev_start(struct rte_eth_dev *dev)
> goto err_vport;
> }
>
> + if (idpf_dev_stats_reset(dev)) {
> + PMD_DRV_LOG(ERR, "Failed to reset stats");
> + goto err_vport;
If stats reset fails, will block the start process and roll back? I think print ERR may be enough.
> + }
> +
> vport->stopped = 0;
>
> return 0;
> @@ -606,6 +691,8 @@ static const struct eth_dev_ops idpf_eth_dev_ops = {
> .tx_queue_release = idpf_dev_tx_queue_release,
> .mtu_set = idpf_dev_mtu_set,
> .dev_supported_ptypes_get = idpf_dev_supported_ptypes_get,
> + .stats_get = idpf_dev_stats_get,
> + .stats_reset = idpf_dev_stats_reset,
> };
>
> static uint16_t
> --
> 2.25.1
More information about the dev
mailing list