From 70ed00293beca15f506b2b20fc8dcab0121416ff Mon Sep 17 00:00:00 2001 From: vcandappa Date: Fri, 17 Sep 2021 14:22:31 +0530 Subject: [PATCH] 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 --- os_net_config/utils.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/os_net_config/utils.py b/os_net_config/utils.py index ee7f23ae..d7451ecb 100644 --- a/os_net_config/utils.py +++ b/os_net_config/utils.py @@ -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