FreeBSD/sys/dev/ixgbe/if_ixv.c
/**********************************************************************
 *
 *  This routine is called only when em_display_debug_stats is enabled.
 *  This routine provides a way to take a look at important statistics
 *  maintained by the driver and hardware.
 *
 **********************************************************************/
This routine is called only when em_display_debug_stats is enabled.
This routine provides a way to take a look at important statistics
maintained by the driver and hardware.
This routine is called only when em_display_debug_stats is enabled . This routine provides a way to take a look at important statistics maintained by the driver and hardware .
static void
ixv_print_debug_info(struct adapter *adapter)
{
        device_t dev = adapter->dev;
        struct ixgbe_hw         *hw = &adapter->hw;
        struct ix_queue         *que = adapter->queues;
        struct rx_ring          *rxr;
        struct tx_ring          *txr;
        struct lro_ctrl         *lro;
        device_printf(dev,"Error Byte Count = %u \n",
            IXGBE_READ_REG(hw, IXGBE_ERRBC));
        for (int i = 0; i < adapter->num_queues; i++, que++) {
                txr = que->txr;
                rxr = que->rxr;
                lro = &rxr->lro;
                device_printf(dev,"QUE(%d) IRQs Handled: %lu\n",
                    que->msix, (long)que->irqs);
                device_printf(dev,"RX(%d) Packets Received: %lld\n",
                    rxr->me, (long long)rxr->rx_packets);
                device_printf(dev,"RX(%d) Bytes Received: %lu\n",
                    rxr->me, (long)rxr->rx_bytes);
                device_printf(dev,"RX(%d) LRO Queued= %lld\n",
                    rxr->me, (long long)lro->lro_queued);
                device_printf(dev,"RX(%d) LRO Flushed= %lld\n",
                    rxr->me, (long long)lro->lro_flushed);
                device_printf(dev,"TX(%d) Packets Sent: %lu\n",
                    txr->me, (long)txr->total_packets);
                device_printf(dev,"TX(%d) NO Desc Avail: %lu\n",
                    txr->me, (long)txr->no_desc_avail);
        }
        device_printf(dev,"MBX IRQ Handled: %lu\n",
            (long)adapter->link_irq);
        return;
}
static void ixv_print_debug_info ( struct adapter * adapter ) { device_t dev = adapter -> dev ; struct ixgbe_hw * hw = & adapter -> hw ; struct ix_queue * que = adapter -> queues ; struct rx_ring * rxr ; struct tx_ring * txr ; struct lro_ctrl * lro ; device_printf ( dev , " \n " , IXGBE_READ_REG ( hw , IXGBE_ERRBC ) ) ; for ( int i = 0 ; i < adapter -> num_queues ; i ++ , que ++ ) { txr = que -> txr ; rxr = que -> rxr ; lro = & rxr -> lro ; device_printf ( dev , " \n " , que -> msix , ( long ) que -> irqs ) ; device_printf ( dev , " \n " , rxr -> me , ( long long ) rxr -> rx_packets ) ; device_printf ( dev , " \n " , rxr -> me , ( long ) rxr -> rx_bytes ) ; device_printf ( dev , " \n " , rxr -> me , ( long long ) lro -> lro_queued ) ; device_printf ( dev , " \n " , rxr -> me , ( long long ) lro -> lro_flushed ) ; device_printf ( dev , " \n " , txr -> me , ( long ) txr -> total_packets ) ; device_printf ( dev , " \n " , txr -> me , ( long ) txr -> no_desc_avail ) ; } device_printf ( dev , " \n " , ( long ) adapter -> link_irq ) ; return ; }
This routine is called only when em_display_debug_stats is enabled.
This routine is called only when em_display_debug_stats is enabled .