[dpdk-dev] [PATCH v6 1/2] tools: Add support for handling built-in kernel modules

2016-01-28 Thread Kamil Rytarowski
W dniu 28.01.2016 o 14:52, Thomas Monjalon pisze: > 2016-01-28 12:17, Kamil Rytarowski: > [...] +# special case for vfio_pci (module is named vfio-pci, +# but its .ko is named vfio_pci) >>> Isn't it common to have dash replaced by underscore for kernel modules? >>> >> I

[dpdk-dev] [PATCH v6 1/2] tools: Add support for handling built-in kernel modules

2016-01-28 Thread Thomas Monjalon
2016-01-28 12:17, Kamil Rytarowski: > > W dniu 26.01.2016 o 16:23, Thomas Monjalon pisze: > > 2016-01-20 10:48, krytarowski at caviumnetworks.com: > >> --- a/tools/dpdk_nic_bind.py > >> +++ b/tools/dpdk_nic_bind.py > >> -for line in loaded_mods: > >> +try: > >> +# Get list of syfs

[dpdk-dev] [PATCH v6 1/2] tools: Add support for handling built-in kernel modules

2016-01-28 Thread Kamil Rytarowski
W dniu 28.01.2016 o 12:22, Panu Matilainen pisze: > On 01/28/2016 01:17 PM, Kamil Rytarowski wrote: >> I retained the logic for special case of vfio-pci. At the moment >> (according to my knowledge) there are no other DPDK modules with this >> name replacement. >> >> I checked few example Linux m

[dpdk-dev] [PATCH v6 1/2] tools: Add support for handling built-in kernel modules

2016-01-28 Thread Panu Matilainen
On 01/28/2016 01:17 PM, Kamil Rytarowski wrote: > > > W dniu 26.01.2016 o 16:23, Thomas Monjalon pisze: >> 2016-01-20 10:48, krytarowski at caviumnetworks.com: >>> --- a/tools/dpdk_nic_bind.py >>> +++ b/tools/dpdk_nic_bind.py >>> -for line in loaded_mods: >>> +try: >>> +# Get list o

[dpdk-dev] [PATCH v6 1/2] tools: Add support for handling built-in kernel modules

2016-01-28 Thread Kamil Rytarowski
W dniu 26.01.2016 o 16:23, Thomas Monjalon pisze: > 2016-01-20 10:48, krytarowski at caviumnetworks.com: >> --- a/tools/dpdk_nic_bind.py >> +++ b/tools/dpdk_nic_bind.py >> -for line in loaded_mods: >> +try: >> +# Get list of syfs modules, some of them might be builtin and merge >

[dpdk-dev] [PATCH v6 1/2] tools: Add support for handling built-in kernel modules

2016-01-26 Thread Thomas Monjalon
2016-01-20 10:48, krytarowski at caviumnetworks.com: > --- a/tools/dpdk_nic_bind.py > +++ b/tools/dpdk_nic_bind.py > -for line in loaded_mods: > +try: > +# Get list of syfs modules, some of them might be builtin and merge > with mods Please could you explain this comment? Is it re

[dpdk-dev] [PATCH v6 1/2] tools: Add support for handling built-in kernel modules

2016-01-26 Thread Kamil Rytarowski
ping? W dniu 20.01.2016 o 10:48, krytarowski at caviumnetworks.com pisze: > From: Kamil Rytarowski > > 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

[dpdk-dev] [PATCH v6 1/2] tools: Add support for handling built-in kernel modules

2016-01-20 Thread krytarow...@caviumnetworks.com
From: Kamil Rytarowski 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 /pr