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