tools: support binding to built-in kernel modules
authorKamil Rytarowski <kamil.rytarowski@caviumnetworks.com>
Thu, 28 Jan 2016 13:13:53 +0000 (14:13 +0100)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Tue, 9 Feb 2016 15:03:46 +0000 (16:03 +0100)
commitbb9f408550d13af6c1da104b0d9d9b9837f69bde
treea9c32095246f473c90bea2606e9d7cebba4538af
parent16c1814c802c205f6d3c32e3d3d10de9f87e7f22
tools: support binding to built-in kernel modules

Currently dpdk_nic_bind.py detects Linux kernel modules via reading
/proc/modules. Built-in ones aren't listed there and therefore they are
not being found by the script.

Add support for checking built-in modules with parsing the sysfs files.

This commit obsoletes the /proc/modules parsing approach.

Signed-off-by: Kamil Rytarowski <kamil.rytarowski@caviumnetworks.com>
Acked-by: Yuanhan Liu <yuanhan.liu@linux.intel.com>
tools/dpdk_nic_bind.py