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

[switchdev 4/x] split systemd service to two parts #602

Merged

Commits on Feb 1, 2024

  1. Update pkg/systemd to support running in host and in container

    Signed-off-by: Yury Kulazhenkov <ykulazhenkov@nvidia.com>
    ykulazhenkov committed Feb 1, 2024
    Configuration menu
    Copy the full SHA
    91669b4 View commit details
    Browse the repository at this point in the history

Commits on Feb 9, 2024

  1. Add support for phases to sriov-config-daemon service

    The service has required argument "phase"
    Two phases are supported now:
     * pre - before the NetworkManager or systemd-networkd
    * post - after the NetworkManager or systemd-networkd
    "sriov-config" systemd unit is responsible for starting the service in the "pre" phase mode.
    "sriov-config-post-network" systemd unit starts the service in the "post" phase mode.
    The service may use different plugins for each phase and call different initialization flows.
    The "post" phase checks the completion status of the "pre" phase by reading the sriov result file.
    The "pre" phase should set "InProgress" status if it succeeds or "Failed" otherwise.
    If the result of the "pre" phase is different than "InProgress", then the "post" phase will not be executed
    and the execution result will be forcefully set to "Failed".
    
    Signed-off-by: Yury Kulazhenkov <ykulazhenkov@nvidia.com>
    ykulazhenkov committed Feb 9, 2024
    Configuration menu
    Copy the full SHA
    a0a1d0b View commit details
    Browse the repository at this point in the history
  2. Split systemd service to two parts

    The first part is executed before the
    NeworkManager or systemd-networkd
    starts on the host.
    The second part is triggered after the
    network configuration is complete.
    
    This change is required to support hw offload
    use-case with systemd service.
    
    Signed-off-by: Yury Kulazhenkov <ykulazhenkov@nvidia.com>
    ykulazhenkov committed Feb 9, 2024
    Configuration menu
    Copy the full SHA
    7faea56 View commit details
    Browse the repository at this point in the history