reset ethdev extended statistics */
| 3676 | |
| 3677 | /* reset ethdev extended statistics */ |
| 3678 | int |
| 3679 | rte_eth_xstats_reset(uint16_t port_id) |
| 3680 | { |
| 3681 | struct rte_eth_dev *dev; |
| 3682 | |
| 3683 | RTE_ETH_VALID_PORTID_OR_ERR_RET(port_id, -ENODEV); |
| 3684 | dev = &rte_eth_devices[port_id]; |
| 3685 | |
| 3686 | /* implemented by the driver */ |
| 3687 | if (dev->dev_ops->xstats_reset != NULL) { |
| 3688 | int ret = eth_err(port_id, (*dev->dev_ops->xstats_reset)(dev)); |
| 3689 | |
| 3690 | rte_eth_trace_xstats_reset(port_id, ret); |
| 3691 | |
| 3692 | return ret; |
| 3693 | } |
| 3694 | |
| 3695 | /* fallback to default */ |
| 3696 | return rte_eth_stats_reset(port_id); |
| 3697 | } |
| 3698 | |
| 3699 | static int |
| 3700 | eth_dev_set_queue_stats_mapping(uint16_t port_id, uint16_t queue_id, |
no test coverage detected