diff options
author | Guduri Prathyusha <gprathyusha@caviumnetworks.com> | 2017-05-04 16:18:49 +0530 |
---|---|---|
committer | Thomas Monjalon <thomas@monjalon.net> | 2017-05-07 14:32:05 +0200 |
commit | 6413d477a61d26166db8928fc8921610a1e3e70f (patch) | |
tree | 9212cac15b6ddf02df49b0844df44eaae77a191a /usertools | |
parent | 3af72783d1fdc6876afdf83de09ad351cc493d2b (diff) | |
download | dpdk-6413d477a61d26166db8928fc8921610a1e3e70f.zip dpdk-6413d477a61d26166db8928fc8921610a1e3e70f.tar.gz dpdk-6413d477a61d26166db8928fc8921610a1e3e70f.tar.xz |
usertools: fix binding device match
If multiple devices of same class are added to a device type,
only devices that match first device listed in device type list are
processed.
Fixing it in device_type_match() by returning false after iterating
through all the devices listed in a device type list.
Fixes: 8ad08a287918 ("usertools: define DPDK PCI functional device")
Signed-off-by: Guduri Prathyusha <gprathyusha@caviumnetworks.com>
Diffstat (limited to 'usertools')
-rwxr-xr-x | usertools/dpdk-devbind.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/usertools/dpdk-devbind.py b/usertools/dpdk-devbind.py index 2d99e9d..79e7e89 100755 --- a/usertools/dpdk-devbind.py +++ b/usertools/dpdk-devbind.py @@ -354,8 +354,7 @@ def device_type_match(dev, devices_type): # count must be the number of non None parameters to match if match_count == param_count: return True - else: - return False + return False def dev_id_from_dev_name(dev_name): '''Take a device "name" - a string passed in by user to identify a NIC |