Open
Description
It would be helpful to provide additional information about the network interfaces and cards, including virtual functions associated with those interfaces.
Extend NIC with numbered Physical Cards and Ports
Name | ... | Card / Port |
---|---|---|
eth2 | ... | 1 / 1 |
eth3 | ... | 1 / 2 |
eth0 | ... | 2 / 1 |
eth1 | ... | 2 / 2 |
Provide additional section for Virtual Functions
Bus | Name | Associated interface |
---|---|---|
0000:c0:11.0 | Ethernet Adaptive Virtual Function | eth0 |
0000:c0:11.1 | Ethernet Adaptive Virtual Function | eth0 |
0000:c0:11.2 | Ethernet Adaptive Virtual Function | eth0 |
I see two ways it could be done:
- By checking the memory mapping under
lshw -c network
- physical interfaces on a card share the same
iomemory
regions (always?), and the bus address start - virtual interfaces use
memory
regions from physical card'smemory
space
- physical interfaces on a card share the same
- Using files under
/sys/bus/pci/devices
in a manner similar to this script https://github.com/OpenVisualCloud/Media-Transport-Library/blob/main/script/nicctl.sh (BSD-3-Clause
)