patches for DPDK stable branches
 help / color / mirror / Atom feed
From: David Marchand <david.marchand@redhat.com>
To: Timothy Redaelli <tredaelli@redhat.com>
Cc: dev <dev@dpdk.org>, dpdk stable <stable@dpdk.org>,
	Luca Boccassi <bluca@debian.org>
Subject: Re: [dpdk-stable] [PATCH] usertools: Fix clearing any old data
Date: Tue, 4 Jun 2019 09:20:06 +0200	[thread overview]
Message-ID: <CAJFAV8y4wqub-pSWawOJXAWMuaeY53gHqLsPC1-c-Dd0G+GGVA@mail.gmail.com> (raw)
In-Reply-To: <80ff3b4893cece8060d4fd7d783783a70e54e49d.camel@debian.org>

On Fri, May 31, 2019 at 3:37 PM Luca Boccassi <bluca@debian.org> wrote:

> On Fri, 2019-05-31 at 13:11 +0200, Timothy Redaelli wrote:
> > Currently clear_data (dpdk-devbind.py) doesn't work as expected since
> > "global devices" is missing and so "devices" is considered a local
> > variable.
> >
> > This commit changes "clear_data" function in order to really clear
> > devices by adding "global devices".
> >
> > CC:
> > stable@dpdk.org


Fixes: ea9f00f7289a ("usertools: refactor NIC and crypto binding details")


> >
> >
> > Signed-off-by: Timothy Redaelli <
> > tredaelli@redhat.com
> > >
> > ---
> >  usertools/dpdk-devbind.py | 1 +
> >  1 file changed, 1 insertion(+)
> >
> > diff --git a/usertools/dpdk-devbind.py b/usertools/dpdk-devbind.py
> > index 9e79f0d28..e6b551d33 100755
> > --- a/usertools/dpdk-devbind.py
> > +++ b/usertools/dpdk-devbind.py
> > @@ -210,6 +210,7 @@ def get_pci_device_details(dev_id, probe_lspci):
> >
> >  def clear_data():
> >      '''This function clears any old data'''
> > +    global devices
> >      devices = {}
> >
> >  def get_device_details(devices_type):
> >
>
> Acked-by: Luca Boccassi <bluca@debian.org>
>


Reviewed-by: David Marchand <david.marchand@redhat.com>

-- 
David Marchand

  reply	other threads:[~2019-06-04  7:20 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-05-31 11:11 Timothy Redaelli
2019-05-31 13:37 ` Luca Boccassi
2019-06-04  7:20   ` David Marchand [this message]
2019-07-04 21:08     ` [dpdk-stable] [dpdk-dev] " Thomas Monjalon

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=CAJFAV8y4wqub-pSWawOJXAWMuaeY53gHqLsPC1-c-Dd0G+GGVA@mail.gmail.com \
    --to=david.marchand@redhat.com \
    --cc=bluca@debian.org \
    --cc=dev@dpdk.org \
    --cc=stable@dpdk.org \
    --cc=tredaelli@redhat.com \
    /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).