usertools: fix refresh binding infos
authorTimothy Redaelli <tredaelli@redhat.com>
Fri, 31 May 2019 11:11:26 +0000 (13:11 +0200)
committerThomas Monjalon <thomas@monjalon.net>
Thu, 4 Jul 2019 21:08:58 +0000 (23:08 +0200)
commit93b93beb123d96e5acbbb24491c491bec47da60d
tree8ca19c574a396d9ea80ae80b702cec68610578a7
parenta70ed3884104df68d28105c8ebc1fb86ae1a6248
usertools: fix refresh binding infos

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".

Fixes: ea9f00f7289a ("usertools: refactor NIC and crypto binding details")
Cc: stable@dpdk.org
Signed-off-by: Timothy Redaelli <tredaelli@redhat.com>
Acked-by: Luca Boccassi <bluca@debian.org>
Reviewed-by: David Marchand <david.marchand@redhat.com>
usertools/dpdk-devbind.py