usertools: fix binding device match
authorGuduri Prathyusha <gprathyusha@caviumnetworks.com>
Thu, 4 May 2017 10:48:49 +0000 (16:18 +0530)
committerThomas Monjalon <thomas@monjalon.net>
Sun, 7 May 2017 12:32:05 +0000 (14:32 +0200)
commit6413d477a61d26166db8928fc8921610a1e3e70f
tree9212cac15b6ddf02df49b0844df44eaae77a191a
parent3af72783d1fdc6876afdf83de09ad351cc493d2b
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>
usertools/dpdk-devbind.py