These are the 40GB NIC cards on the host machine:
# lspci -nn | grep Ethernet
b0:00.0 Ethernet controller : Intel Corporation Ethernet Controller XL710 for 40GbE QSFP+ [8086:1583] (rev 02)
b0:00.1 Ethernet controller : Intel Corporation Ethernet Controller XL710 for 40GbE QSFP+ [8086:1583] (rev 02)
One Physical Function per XL710 40 Gigabit Ethernet Controller NIC port and 30 Virtual Functions assigned to each physical function.
[root@com5 ~]# cat /sys/class/net/ens1f0/device/sriov_numvfs
[root@com5 ~]# cat /sys/class/net/ens1f1/device/sriov_numvfs
For the PF, I can check Rx/Tx packet counts and bytes by using "ifconfig" command.
[root@com5 ~]# ifconfig ens1f0
ens1f0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet6 fe80::4adf:37ff:fe42:1450 prefixlen 64 scopeid 0x20<link>
ether 48:df:37:42:14:50 txqueuelen 1000 (Ethernet)
RX packets 392099 bytes 34188783 (32.6 MiB)
RX errors 0 dropped 1470 overruns 0 frame 0
TX packets 28744 bytes 12584185 (12.0 MiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
But is there any way to get Rx/Tx packets and bytes information for the each VF?
Please let me know.
Never heard of that, you should consult the tech support, to have better insight for your query. While, if you wish to have successful career in IT Sector, you must train yourself to gain the Cisco Certification.