User Manual

Rev 2.3-1.0.1
Mellanox Technologies
35
Upon driver start up:
1. Sense the adapter card’s port type:
If a valid cable or module is connected (QSFP, SFP+, or SFP with EEPROM in the cable/mod-
ule):
Set the port type to the sensed link type (IB/Ethernet)
Otherwise:
Set the port type as default (Ethernet)
During driver run time:
Sense a link every 3 seconds if no link is sensed/detected
If sensed, set the port type as sensed
3.1.1.2 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>
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.