Updating sriov_config.service to run before driverctl.slice and network-pre

On a start/reboot, os-net sriov_config.service
is run to create VFs for nic-partitioned devices.
If vfio-pci driver is bound to any of the VFs,
the VF initialisation doesn't occur properly.
The VF creation has to be completed before driverctl vfio-pci
binding AND all network interface configs.
So modified the sriov_config dependency, to ensure it
is execute before these services

Change-Id: Id0ef377b92c771b62fae99eaedc778ae64b0e52d
(cherry picked from commit 70ed00293b)
This commit is contained in:
vcandappa 2021-09-17 14:22:31 +05:30 committed by Vijayalakshmi
parent 8f08b73878
commit 8691098036
1 changed files with 2 additions and 2 deletions

View File

@ -44,14 +44,14 @@ _SRIOV_CONFIG_SERVICE_FILE = "/etc/systemd/system/sriov_config.service"
_SRIOV_CONFIG_DEVICE_CONTENT = """[Unit]
Description=SR-IOV numvfs configuration
After=systemd-udev-settle.service openibd.service
Before=openvswitch.service
Before=system-driverctl.slice network-pre.target openvswitch.service
[Service]
Type=oneshot
ExecStart=/usr/bin/os-net-config-sriov
[Install]
WantedBy=multi-user.target
WantedBy=basic.target
"""
# VPP startup operational configuration file. The content of this file will