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

Function sfc_repr_stats_get

dpdk/drivers/net/sfc/sfc_repr.c:847–874  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

845}
846
847static int
848sfc_repr_stats_get(struct rte_eth_dev *dev, struct rte_eth_stats *stats)
849{
850 union sfc_pkts_bytes queue_stats;
851 uint16_t i;
852
853 for (i = 0; i < dev->data->nb_rx_queues; i++) {
854 struct sfc_repr_rxq *rxq = dev->data->rx_queues[i];
855
856 sfc_pkts_bytes_get(&rxq->stats.packets_bytes,
857 &queue_stats);
858
859 stats->ipackets += queue_stats.pkts;
860 stats->ibytes += queue_stats.bytes;
861 }
862
863 for (i = 0; i < dev->data->nb_tx_queues; i++) {
864 struct sfc_repr_txq *txq = dev->data->tx_queues[i];
865
866 sfc_pkts_bytes_get(&txq->stats.packets_bytes,
867 &queue_stats);
868
869 stats->opackets += queue_stats.pkts;
870 stats->obytes += queue_stats.bytes;
871 }
872
873 return 0;
874}
875
876static int
877sfc_repr_flow_pick_transfer_proxy(struct rte_eth_dev *dev,

Callers

nothing calls this directly

Calls 1

sfc_pkts_bytes_getFunction · 0.85

Tested by

no test coverage detected