Skip to content

Report more information about network interfaces #377

Open
@MateuszGrabuszynski

Description

@MateuszGrabuszynski

It would be helpful to provide additional information about the network interfaces and cards, including virtual functions associated with those interfaces.

Image

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:

  1. 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's memory space
  2. 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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions