All of lore.kernel.org
 help / color / mirror / Atom feed
From: Panu Matilainen <pmatilai@redhat.com>
To: "dev@dpdk.org" <dev@dpdk.org>, "users@dpdk.org" <users@dpdk.org>,
	"dev@openvswitch.org" <dev@openvswitch.org>,
	discuss@openvswitch.org
Subject: [announce] driverctl: utility for persistent alternative driver binding
Date: Fri, 4 Dec 2015 12:54:24 +0200	[thread overview]
Message-ID: <566170E0.8080102@redhat.com> (raw)

Hi all,

While this is not directly related to DPDK or OVS, it is potentially 
useful for users of both, so excuse me for cross-posting.

Quoting from the project README (for the full text see
http://laiskiainen.org/git/?p=driverctl.git;a=blob_plain;f=README)

 > driverctl is a tool for manipulating and inspecting the system
 > device driver choices.
 >
 > Devices are normally assigned to their sole designated kernel driver
 > by default. However in some situations it may be desireable to
 > override that default, for example to try an older driver to
 > work around a regression in a driver or to try an experimental
 > alternative driver. Another common use-case is pass-through
 > drivers and driver stubs to allow userspace to drive the device,
 > such as in case of virtualization.
 >
 > driverctl integrates with udev to support overriding
 > driver selection for both cold- and hotplugged devices from the
 > moment of discovery, but can also change already assigned drivers,
 > assuming they are not in use by the system. The driver overrides
 > created by driverctl are persistent across system reboots
 > by default.
 >
 > Usage
 > -----
 >
 > Find devices currently driven by ixgbe driver:
 >
 > # driverctl -v list-devices | grep ixgbe
 > 0000:01:00.0 ixgbe (Ethernet 10G 4P X520/I350 rNDC)
 > 0000:01:00.1 ixgbe (Ethernet 10G 4P X520/I350 rNDC)
 >
 > Change them to use the vfio-pci driver:
 > # driverctl set-override 0000:01:00.0 vfio-pci
 > # driverctl set-override 0000:01:00.1 vfio-pci
 >
 > Find devices with driver overrides:
 > # driverctl -v list-devices|grep \\*
 > 0000:01:00.0 vfio-pci [*] (Ethernet 10G 4P X520/I350 rNDC)
 > 0000:01:00.1 vfio-pci [*] (Ethernet 10G 4P X520/I350 rNDC)
 >
 > Remove the override from slot 0000:01:00.1:
 > # driverctl unset-override 0000:01:00.1

DPDK of course has its own dpdk_nic_bind(.py) tool for this purpose, the 
main differences to driverctl are:
- driverctl bindings are persistent across system boots
- driverctl bindings take place immediately on cold- and hotplug
- driverctl is a generic tool not limited to network adapters
- dpdk_nic_bind being a special purpose tool has many more
   sanity checks for its supported use-cases
- dpdk_nic_bind supports binding multiple NICs at once

The project currently lives at
     http://laiskiainen.org/git/?p=driverctl.git

Feedback, patches etc are welcome.

	- Panu -

             reply	other threads:[~2015-12-04 10:54 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-12-04 10:54 Panu Matilainen [this message]
     [not found] ` <566170E0.8080102-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2015-12-04 15:44   ` [ovs-discuss] [announce] driverctl: utility for persistent alternative driver binding Gray, Mark D
2015-12-08 12:04     ` Panu Matilainen
2015-12-14 11:42       ` Gray, Mark D

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=566170E0.8080102@redhat.com \
    --to=pmatilai@redhat.com \
    --cc=dev@dpdk.org \
    --cc=dev@openvswitch.org \
    --cc=discuss@openvswitch.org \
    --cc=users@dpdk.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.