User Manual

Driver FeaturesRev 2.2-1.0.1
Mellanox Technologies
136
4.22 Ethernet Performance Counters
Counters are used to provide information about how well an operating system, an application, a
service, or a driver is performing. The counter data helps determine system bottlenecks and fine-
tune the system and application performance. The operating system, network, and devices pro-
vide counter data that an application can consume to provide users with a graphical view of how
well the system is performing.
The counter index is a QP attribute given in the QP context. Multiple QPs may be associated with
the same counter set, If multiple QPs share the same counter its value represents the cumulative
total.
ConnectX®-3 supports 127 different counters which are allocated as follow:
4 counters reserved for PF - 2 counters for each port
2 counters reserved for VF - 1 counter for each port
All other counters if exist are allocated by demand
RoCE counters are available only through sysfs located under:
# /sys/class/infiniband/mlx4_*/ports/*/counters/
# /sys/class/infiniband/mlx4_*/ports/*/counters_ext/
Physical Function can also read Virtual Functions' port counters through sysfs located
under:
# /sys/class/net/eth*/vf*_statistics/
To display the network device Ethernet statistics, you can run:
Ethtool -S <devname>
Table 9 - Port IN Counters
Counter Description
rx_packets Total packets successfully received.
rx_bytes Total bytes in successfully received packets.
rx_multicast_packets Total multicast packets successfully received.
rx_broadcast_packets Total broadcast packets successfully received.
rx_errors Number of receive packets that contained errors preventing them
from being deliverable to a higher
-layer protocol.
rx_dropped Number of receive packets which were chosen to be discarded
even though no errors had been detected to prevent their being
deliverable to a higher
-layer protocol.
rx_length_errors Number of received frames that were dropped due to an error in
frame length
rx_over_errors Number of received frames that were dropped due to overflow
rx_crc_errors Number of received frames with a bad CRC that are not runts,
jabbers, or alignment errors