devargs: replace --use-device option by --pci-whitelist and --vdev
authorOlivier Matz <olivier.matz@6wind.com>
Sat, 1 Mar 2014 12:14:45 +0000 (13:14 +0100)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Thu, 10 Apr 2014 13:50:34 +0000 (15:50 +0200)
commitcac6d08c8bde2fdb57806c49038187cdb54219a8
treef65e0272e49977c7245d80bd6f6f3875ab3a6d35
parenta8b97e3a1db0a9366d58811411b904e4fef8160f
devargs: replace --use-device option by --pci-whitelist and --vdev

This commit splits the "--use-device" option in two new options:

- "--pci-whitelist or -w": add a PCI device in the white list
- "--vdev": instanciate a new virtual device

Before the patch, the same option "--use-device" was used for these 2
use-cases.

By the way, we also add "--pci-blacklist" in addition to the existing
"-b" for coherency with the whitelist parameter.

Test result:

echo 100 > /sys/devices/system/node/node0/hugepages/hugepages-2048kB/nr_hugepages
echo 100 > /sys/devices/system/node/node1/hugepages/hugepages-2048kB/nr_hugepages
./app/test -c 0x15 -n 3 -m 64
RTE>>eal_flags_autotest
[...]
Test OK

Signed-off-by: Olivier Matz <olivier.matz@6wind.com>
Acked-by: Thomas Monjalon <thomas.monjalon@6wind.com>
app/test/test_eal_flags.c
lib/librte_eal/linuxapp/eal/eal.c