| 491 | */ |
| 492 | |
| 493 | void bnxt_free_stats(struct bnxt *bp) |
| 494 | { |
| 495 | int i; |
| 496 | |
| 497 | for (i = 0; i < (int)bp->tx_cp_nr_rings; i++) { |
| 498 | struct bnxt_tx_queue *txq = bp->tx_queues[i]; |
| 499 | |
| 500 | bnxt_free_txq_stats(txq); |
| 501 | } |
| 502 | for (i = 0; i < (int)bp->rx_cp_nr_rings; i++) { |
| 503 | struct bnxt_rx_queue *rxq = bp->rx_queues[i]; |
| 504 | |
| 505 | bnxt_free_rxq_stats(rxq); |
| 506 | } |
| 507 | } |
| 508 | |
| 509 | static void bnxt_fill_rte_eth_stats(struct rte_eth_stats *stats, |
| 510 | struct bnxt_ring_stats *ring_stats, |
no test coverage detected