| 563 | } |
| 564 | |
| 565 | void |
| 566 | failsafe_stats_increment(struct rte_eth_stats *to, struct rte_eth_stats *from) |
| 567 | { |
| 568 | uint32_t i; |
| 569 | |
| 570 | RTE_ASSERT(to != NULL && from != NULL); |
| 571 | to->ipackets += from->ipackets; |
| 572 | to->opackets += from->opackets; |
| 573 | to->ibytes += from->ibytes; |
| 574 | to->obytes += from->obytes; |
| 575 | to->imissed += from->imissed; |
| 576 | to->ierrors += from->ierrors; |
| 577 | to->oerrors += from->oerrors; |
| 578 | to->rx_nombuf += from->rx_nombuf; |
| 579 | for (i = 0; i < RTE_ETHDEV_QUEUE_STAT_CNTRS; i++) { |
| 580 | to->q_ipackets[i] += from->q_ipackets[i]; |
| 581 | to->q_opackets[i] += from->q_opackets[i]; |
| 582 | to->q_ibytes[i] += from->q_ibytes[i]; |
| 583 | to->q_obytes[i] += from->q_obytes[i]; |
| 584 | to->q_errors[i] += from->q_errors[i]; |
| 585 | } |
| 586 | } |
| 587 | |
| 588 | int |
| 589 | failsafe_eth_rmv_event_callback(uint16_t port_id __rte_unused, |
no outgoing calls
no test coverage detected