[Pkg-dpdk-devel] Bug#979489: Bug#979489: dpdk: reduce pre dependencies of systemd service

Christian Ehrhardt christian.ehrhardt at canonical.com
Thu Jan 7 10:19:01 GMT 2021


Thanks for the report Felix Moessbauer,

This behavior goes all the way back to
commit 57b7875785321eb750dcd700d305c8d9147d5287
Author: Stefan Bader <stefan.bader at canonical.com>
Date:   Mon Aug 10 13:59:40 2015 +0200
    UBUNTU: Import Ubuntu/Debian packaging

And we never challenged it, but I guess it is right to do so.
As we all know the DPDK service prepares conditions like hugepages but
for this case more importantly driver assignments.

I think the intention was to "mess with the drivers only once they are ready".
But all we need is the PCI assignment of devices in /sys/bus/pci to be
complete - we don't need anything of the actual networking.
And that should be good already at the time userspace gets control.

Spinning this further - since we are quite likely to remove network
cards when we re-assign drivers.
I think we are even Before=network-pre.target as only after we are
done the networking devices will be sort of stable.

And for the other tasks of the service (like hugepages) the earlier the better.

Therefore I'd even propose Before=network-pre.target while touching it.



More information about the Pkg-dpdk-devel mailing list