Lines Matching refs:vstats

87 	struct opa_vnic_stats vstats;  in opa_vnic_get_summary_counters()  local
91 memset(&vstats, 0, sizeof(vstats)); in opa_vnic_get_summary_counters()
93 adapter->rn_ops->ndo_get_stats64(adapter->netdev, &vstats.netstats); in opa_vnic_get_summary_counters()
100 cntrs->tx_errors = cpu_to_be64(vstats.netstats.tx_errors); in opa_vnic_get_summary_counters()
101 cntrs->rx_errors = cpu_to_be64(vstats.netstats.rx_errors); in opa_vnic_get_summary_counters()
102 cntrs->tx_packets = cpu_to_be64(vstats.netstats.tx_packets); in opa_vnic_get_summary_counters()
103 cntrs->rx_packets = cpu_to_be64(vstats.netstats.rx_packets); in opa_vnic_get_summary_counters()
104 cntrs->tx_bytes = cpu_to_be64(vstats.netstats.tx_bytes); in opa_vnic_get_summary_counters()
105 cntrs->rx_bytes = cpu_to_be64(vstats.netstats.rx_bytes); in opa_vnic_get_summary_counters()
111 for (dst = &cntrs->tx_unicast, src = &vstats.tx_grp.unicast; in opa_vnic_get_summary_counters()
128 struct opa_vnic_stats vstats; in opa_vnic_get_error_counters() local
130 memset(&vstats, 0, sizeof(vstats)); in opa_vnic_get_error_counters()
132 adapter->rn_ops->ndo_get_stats64(adapter->netdev, &vstats.netstats); in opa_vnic_get_error_counters()
139 cntrs->tx_errors = cpu_to_be64(vstats.netstats.tx_errors); in opa_vnic_get_error_counters()
140 cntrs->rx_errors = cpu_to_be64(vstats.netstats.rx_errors); in opa_vnic_get_error_counters()
141 cntrs->tx_dlid_zero = cpu_to_be64(vstats.tx_dlid_zero); in opa_vnic_get_error_counters()
142 cntrs->tx_drop_state = cpu_to_be64(vstats.tx_drop_state); in opa_vnic_get_error_counters()
143 cntrs->tx_logic = cpu_to_be64(vstats.netstats.tx_fifo_errors + in opa_vnic_get_error_counters()
144 vstats.netstats.tx_carrier_errors); in opa_vnic_get_error_counters()
146 cntrs->rx_bad_veswid = cpu_to_be64(vstats.netstats.rx_nohandler); in opa_vnic_get_error_counters()
147 cntrs->rx_runt = cpu_to_be64(vstats.rx_runt); in opa_vnic_get_error_counters()
148 cntrs->rx_oversize = cpu_to_be64(vstats.rx_oversize); in opa_vnic_get_error_counters()
149 cntrs->rx_drop_state = cpu_to_be64(vstats.rx_drop_state); in opa_vnic_get_error_counters()
150 cntrs->rx_logic = cpu_to_be64(vstats.netstats.rx_fifo_errors); in opa_vnic_get_error_counters()