<p dir="ltr">I wonder if this could be handled with a generic Type=oneshot, ExecStart=driverctl bind foo...</p>
<p dir="ltr">-- <br>
Mantas Mikulėnas</p>
<div class="gmail_quote">On Sep 28, 2015 21:48, "Flavio Leitner" <<a href="mailto:fbl@sysclose.org">fbl@sysclose.org</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On Mon, Sep 28, 2015 at 08:06:50PM +0200, Kay Sievers wrote:<br>
> On Sun, Sep 27, 2015 at 11:37 PM, Flavio Leitner <<a href="mailto:fbl@sysclose.org">fbl@sysclose.org</a>> wrote:<br>
> > I am looking for guidance on how to properly resolve driver binding<br>
> > with systemd (which seems to me the best place to do that).<br>
><br>
> This seems to be a too exotic and niche use case, nothing<br>
> general-purpose enough to implement high-level knobs in systemd.<br>
<br>
These alternative drivers might be new yet, so there is no much around<br>
them, but we need to start right to avoid problems in the future.<br>
<br>
Accelerated userspace datapath is one use case that changes the default<br>
NIC driver to UIO or VFIO driver. Then you use DPDK applications for<br>
fast packet processing or use DPDK integrated Open vSwitch for switching.<br>
<br>
Consider that Open Stack (WIP), Open Shift and maybe containers can use<br>
the above setup, so isn't really a niche use case. It's pretty much a<br>
requirement for NFV projects as well.<br>
<br>
> As you mention, you could use custom udev rules to actually bind a<br>
> specific driver. I don't think we want anything more abstract in<br>
> systemd.<br>
<br>
The problem with that is we can't stop the service to roll back the<br>
driver. Or more importantly, create a dependency to, let's say,<br>
start Open vSwitch only after the ports are bound to the right driver.<br>
Or start an application that requires the NIC to be bound first.<br>
<br>
Thanks,<br>
fbl<br>
<br>
_______________________________________________<br>
systemd-devel mailing list<br>
<a href="mailto:systemd-devel@lists.freedesktop.org">systemd-devel@lists.freedesktop.org</a><br>
<a href="http://lists.freedesktop.org/mailman/listinfo/systemd-devel" rel="noreferrer" target="_blank">http://lists.freedesktop.org/mailman/listinfo/systemd-devel</a><br>
</blockquote></div>