Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

driver/rawnetworkinterfacedriver: add interface up/down/(basic, EEE, pause) configuration #1525

Merged
merged 4 commits into from
Nov 1, 2024

Commits on Oct 30, 2024

  1. driver/rawnetworkinterfacedriver: add interface up/down/wait_state

    Add methods to the RawNetworkInterfaceDriver to set interfaces up and
    down, as well as getting and waiting for the interface state.
    
    This allows the driver to take more control over the interface,
    preconfiguration is not needed anymore. Tests that expect the exporter
    interface to be down (such as ethernet selftests, cable tests) are now
    possible.
    
    Note that the RawNetworkInterfaceDriver now brings the bound interface
    up on activate and down on deactivate.
    
    Signed-off-by: Bastian Krause <[email protected]>
    Bastian-Krause committed Oct 30, 2024
    Configuration menu
    Copy the full SHA
    12179e7 View commit details
    Browse the repository at this point in the history
  2. driver/rawnetworkinterfacedriver: ethtool get/change settings

    Add interface configuration (`ethtool --change`) support to the
    RawNetworkInterfaceDriver. This allows configuring the bound interface
    (speed, lanes, duplex, port, master-slave, mdix, autoneg, advertise,
    phyad, xcvr, wol, sopass, msglvl).
    
    Also add add a `get_settings()` method to query those settings. Note
    that ethtool gained the required --json support for the default sub
    command in v6.10.
    
    Signed-off-by: Bastian Krause <[email protected]>
    Bastian-Krause committed Oct 30, 2024
    Configuration menu
    Copy the full SHA
    f63dde9 View commit details
    Browse the repository at this point in the history
  3. driver/rawnetworkinterfacedriver: ethtool get/change EEE settings

    Add interface Energy Efficient Ethernet (EEE) configuration
    (`ethtool --set-eee`) support to the RawNetworkInterfaceDriver. This
    allows configuring the EEE parameters eee, tx-lpi, tx-timer and advertise
    on the bound interface.
    
    Also add a `get_eee_settings()` method to query those settings. Note
    that ethtool gained the required --json support for this sub command in
    v6.10.
    
    Signed-off-by: Bastian Krause <[email protected]>
    Bastian-Krause committed Oct 30, 2024
    Configuration menu
    Copy the full SHA
    63b38ce View commit details
    Browse the repository at this point in the history
  4. driver/rawnetworkinterfacedriver: ethtool get/change pause settings

    Add interface pause configuration (`ethtool --pause`) support to the
    RawNetworkInterfaceDriver. This allows configuring the pause parameters
    autoneg, rx and tx on the bound interface.
    
    Also add a `get_pause_settings()` method to query those settings.
    
    Signed-off-by: Bastian Krause <[email protected]>
    Bastian-Krause committed Oct 30, 2024
    Configuration menu
    Copy the full SHA
    a93f147 View commit details
    Browse the repository at this point in the history