bus: add helper to find a bus from a device name
authorGaetan Rivet <gaetan.rivet@6wind.com>
Fri, 7 Jul 2017 00:03:11 +0000 (02:03 +0200)
committerThomas Monjalon <thomas@monjalon.net>
Sat, 8 Jul 2017 20:29:29 +0000 (22:29 +0200)
commitcfdbd65300db216a34e98d0f40cc210b2d0a4450
treeb4a414332b8db5040b4e53e04b9eec6c2ea701f8
parent595876836932ce45c3a47cb17892f4851eb5f7b8
bus: add helper to find a bus from a device name

Find which bus should be able to parse this device name into an internal
device representation.

Signed-off-by: Gaetan Rivet <gaetan.rivet@6wind.com>
Acked-by: Bruce Richardson <bruce.richardson@intel.com>
lib/librte_eal/common/eal_common_bus.c
lib/librte_eal/common/eal_private.h