Exemplo n.º 1
0
void
ark_mpu_dump(struct ark_mpu_t *mpu, const char *code, uint16_t qid)
{
	/* DUMP to see that we have started */
	PMD_DEBUG_LOG(DEBUG, "MPU: %s Q: %3u sw_prod %u, hw_cons: %u\n",
		      code, qid,
		      mpu->cfg.sw_prod_index, mpu->cfg.hw_cons_index);
	PMD_DEBUG_LOG(DEBUG, "MPU: %s state: %d count %d, reserved %d"
		      " data 0x%08x_%08x 0x%08x_%08x\n",
		      code,
		      mpu->debug.state, mpu->debug.count,
		      mpu->debug.reserved,
		      mpu->debug.peek[1],
		      mpu->debug.peek[0],
		      mpu->debug.peek[3],
		      mpu->debug.peek[2]
		      );
	PMD_STATS_LOG(INFO, "MPU: %s Q: %3u"
		      ARK_SU64 ARK_SU64 ARK_SU64 ARK_SU64
		      ARK_SU64 ARK_SU64 ARK_SU64 "\n",
		      code, qid,
		      "PCI Request:", mpu->stats.pci_request,
		      "Queue_empty", mpu->stats.q_empty,
		      "Queue_q1", mpu->stats.q_q1,
		      "Queue_q2", mpu->stats.q_q2,
		      "Queue_q3", mpu->stats.q_q3,
		      "Queue_q4", mpu->stats.q_q4,
		      "Queue_full", mpu->stats.q_full
		      );
}
Exemplo n.º 2
0
void
ark_ddm_dump_stats(struct ark_ddm_t *ddm, const char *msg)
{
	struct ark_ddm_stats_t *stats = &ddm->stats;

	PMD_STATS_LOG(INFO, "DDM Stats: %s"
		      ARK_SU64 ARK_SU64 ARK_SU64
		      "\n", msg,
		      "Bytes:", stats->tx_byte_count,
		      "Packets:", stats->tx_pkt_count,
		      "MBufs", stats->tx_mbuf_count);
}
Exemplo n.º 3
0
void
ark_udm_dump_stats(struct ark_udm_t *udm, const char *msg)
{
	PMD_STATS_LOG(INFO, "UDM Stats: %s"
		      ARK_SU64 ARK_SU64 ARK_SU64 ARK_SU64 ARK_SU64 "\n",
		      msg,
		      "Pkts Received", udm->stats.rx_packet_count,
		      "Pkts Finalized", udm->stats.rx_sent_packets,
		      "Pkts Dropped", udm->tlp.pkt_drop,
		      "Bytes Count", udm->stats.rx_byte_count,
		      "MBuf Count", udm->stats.rx_mbuf_count);
}
Exemplo n.º 4
0
void
ark_udm_dump_queue_stats(struct ark_udm_t *udm, const char *msg, uint16_t qid)
{
	PMD_STATS_LOG(INFO, "UDM Queue %3u Stats: %s"
		      ARK_SU64 ARK_SU64
		      ARK_SU64 ARK_SU64
		      ARK_SU64 "\n",
		      qid, msg,
		      "Pkts Received", udm->qstats.q_packet_count,
		      "Pkts Finalized", udm->qstats.q_ff_packet_count,
		      "Pkts Dropped", udm->qstats.q_pkt_drop,
		      "Bytes Count", udm->qstats.q_byte_count,
		      "MBuf Count", udm->qstats.q_mbuf_count);
}
Exemplo n.º 5
0
void
ark_udm_dump_perf(struct ark_udm_t *udm, const char *msg)
{
	struct ark_udm_pcibp_t *bp = &udm->pcibp;

	PMD_STATS_LOG(INFO, "UDM Performance %s"
		      ARK_SU32 ARK_SU32 ARK_SU32 ARK_SU32 ARK_SU32 ARK_SU32
		      "\n",
		      msg,
		      "PCI Empty", bp->pci_empty,
		      "PCI Q1", bp->pci_q1,
		      "PCI Q2", bp->pci_q2,
		      "PCI Q3", bp->pci_q3,
		      "PCI Q4", bp->pci_q4,
		      "PCI Full", bp->pci_full);
}