Many of the Sniffer10G test / example programs require a -p <port number> as a command-line argument. The port number refers to the physical PHY connector port on the network adapter. The ports are enumerated starting at 0. If the network adapter has two physical ports, the port closest to the PCI connector is assigned port 0 and the other port is assigned port 1. Port 0 also corresponds to the lower MAC address of a two-port adapter. If there are multiple adapters installed in the server, the port numbers for the successive adapters are assigned according to the order in which the adapters are detected by the BIOS. Refer to the output of
$ myri_nic_info -B
to determine the port numbering. For example:
$ /opt/snf/bin/myri_nic_info -B # Serial MAC ProductCode Driver Version 0 419914 00:60:dd:45:4c:90 10G-PCIE2-8C2-2S myri_snf 2.0.4.50250 1 419914 00:60:dd:45:4c:91 10G-PCIE2-8C2-2S myri_snf 2.0.4.50250
where the first column # denotes the port number.