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

Function failsafe_stats_increment

dpdk/drivers/net/failsafe/failsafe_ether.c:565–586  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

563}
564
565void
566failsafe_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
588int
589failsafe_eth_rmv_event_callback(uint16_t port_id __rte_unused,

Callers 2

fs_stats_getFunction · 0.85
fs_dev_stats_saveFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected