DPDK patches and discussions
 help / color / mirror / Atom feed
From: "Burakov, Anatoly" <anatoly.burakov@intel.com>
To: "Tosatti, Giovanni" <GTosatti@empirix.com>,
	"dev@dpdk.org" <dev@dpdk.org>
Subject: Re: [dpdk-dev] Add option to dpdk-devbind.py to restore kernel driver binding
Date: Tue, 10 Apr 2018 13:55:02 +0100	[thread overview]
Message-ID: <5a663f79-da25-a2f9-d3d3-2c4817142613@intel.com> (raw)
In-Reply-To: <40ff3805d8a647f8bda4a386cc6a3987@bilemail2.empirix.com>

On 10-Apr-18 11:55 AM, Tosatti, Giovanni wrote:
> This patch adds a " --restore" option that will unbind all devices currently bound to DPDK PMDs back to the kernel driver.

Hi Giovanni,

Nitpicking the commit message, but I believe "unbind" here is a bit of a 
misnomer - one does not "unbind to kernel driver", it's either "bind to 
kernel driver" or "bind to DPDK driver" :)

> 
> --- /opt/Perforce/gtosatti_centos/E-XMS/CSA-Mainline/Third-Party/dpdk/dpdk-16.07.orig/tools/dpdk-devbind.py
> +++ /opt/Perforce/gtosatti_centos/E-XMS/CSA-Mainline/Third-Party/dpdk/dpdk-16.07/tools/dpdk-devbind.py
> @@ -91,6 +91,9 @@
>       -u, --unbind:
>           Unbind a device (Equivalent to \"-b none\")
>   
> +    -r, --restore
> +        Restore ALL the DPDK devices to their kernel drivers

Same here - perhaps for clarity this should be "For all devices bound to 
DPDK drivers, bind them to their kernel drivers".

> +
>       --force:
>           By default, devices which are used by Linux - as indicated by having
>           routes in the routing table - cannot be modified. Using the --force
> @@ -448,6 +451,21 @@
>           if "Driver_str" in devices[d]:
>               unbind_one(d, force)
>   
> +def restore_all_to_kernel():

-- 
Thanks,
Anatoly

  reply	other threads:[~2018-04-10 12:55 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-04-10 10:55 Tosatti, Giovanni
2018-04-10 12:55 ` Burakov, Anatoly [this message]
2018-04-10 13:19 ` Burakov, Anatoly
2019-04-05 15:50   ` Ferruh Yigit
2019-04-05 15:50     ` Ferruh Yigit
  -- strict thread matches above, loose matches on Subject: below --
2018-04-10 11:10 Tosatti, Giovanni
2018-03-22 13:41 Tosatti, Giovanni
2018-03-22 14:19 ` Burakov, Anatoly

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=5a663f79-da25-a2f9-d3d3-2c4817142613@intel.com \
    --to=anatoly.burakov@intel.com \
    --cc=GTosatti@empirix.com \
    --cc=dev@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).