Question:
If I have multiple two-port network adapters per server, how do I determine which interface is snf0, which one is snf1, etc? Is there a utility showing the mapping of snfX to ethX interface, or listing MAC addresses of snfX interfaces?
Answer:
Please refer to the output of myri_nic_info. The board number shown will be that of the snf interface number. (I.e., board #X will be snfX under libpcap).
$ /opt/snf/bin/myri_nic_info -B # Serial MAC ProductCode Driver 2 277770 00:60:dd:45:ec:e5 10G-PCIE-8B-C myri_snf 2.0.8.50315 0 363130 00:60:dd:46:b2:8a 10G-PCIE2-8B2-2S myri_snf 2.0.8.50315 1 363130 00:60:dd:46:b2:8b 10G-PCIE2-8B2-2S myri_snf 2.0.8.50315
As for mapping there's no explicit utility. There's a SNF API call (snf_getifaddrs) to extract information similar to getifaddrs() but it's not translated into a command line utility.
A while ago we did expose ethX interfaces but the subtle configuration of some of the utilities that use libpcap made it easy for some end users to go through the non-SNF path by using the ethX name.