[intel] Add intelxvf_stats() to dump packet statistics registers

Signed-off-by: Michael Brown <mcb30@ipxe.org>
This commit is contained in:
Michael Brown
2015-05-19 13:03:02 +01:00
parent 3ec8b67818
commit 51b6a1c835
2 changed files with 46 additions and 0 deletions
+25
View File
@@ -38,6 +38,31 @@ FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL );
*
*/
/******************************************************************************
*
* Diagnostics
*
******************************************************************************
*/
/**
* Dump statistics
*
* @v intel Intel device
*/
static __attribute__ (( unused )) void
intelxvf_stats ( struct intel_nic *intel ) {
DBGC ( intel, "INTEL %p TX %d (%#x%08x) RX %d (%#x%08x) multi %d\n",
intel, readl ( intel->regs + INTELXVF_GPTC ),
readl ( intel->regs + INTELXVF_GOTCH ),
readl ( intel->regs + INTELXVF_GOTCL ),
readl ( intel->regs + INTELXVF_GPRC ),
readl ( intel->regs + INTELXVF_GORCH ),
readl ( intel->regs + INTELXVF_GORCL ),
readl ( intel->regs + INTELXVF_MPRC ) );
}
/******************************************************************************
*
* Device reset