Skip to content

Enhance visibility of network interface cards during probing #981

Description

@toanju

Which component does this relate to?
server discovery

What is the reason for this feature request or change?
Enhance level of detail of network interface cards during discovery

Describe the feature

Add details from server NICs that are discoverable using ethtool

  • channel information presented in the Channels struct
  • device driver info presented in the DrvInfo struct
  • details from sysfs (omit if not available)
    • /sys/class/net/$dev/device/numa_node
    • /sys/class/net/$dev/device/vendor
    • /sys/class/net/$dev/device/subsystem_vendor
    • /sys/class/net/$dev/device/device

Proposed API or behavior changes
only added status fields

apiVersion: metal.ironcore.dev/v1alpha1
kind: Server
...
status:
  ...
  networkInterfaces:
    - name: eno1
      ...
      channels:
        maxRx: 0
        maxTx: 0
        maxOther: 0
        maxCombined: 8
        rxCount: 0
        txCount: 0
        otherCount: 0
      driverInfo:
        driver: name
        version: version
        fwVersion: firmware_version
        busInfo: 000:01:00:0
        eromVersion: expansion-rom-version
        reserved2: could be omitted
        NPrivFlags: 0
        NStats: 1
        TestInfoLen: 0
        EedumpLen: 1
        RegdumpLen: 0
      numaNode: 0
      vendor: 0x123
      vendorSubsystem: 0x123
    - name: eno2
      ...

Alternatives considered
n/a

Additional context
n/a

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Fields

No fields configured for issues without a type.

Projects

Status
No status

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions