[dpdk-dev] [PATCH v2 02/11] devices-args: introduce rte_devargs in eal

Thomas Monjalon thomas.monjalon at 6wind.com
Thu Apr 10 15:59:57 CEST 2014


2014-03-01 13:14, Olivier Matz:
> This commit introduces a new API for storing device arguments given by
> the user. It only adds the framework and the test. The modification of
> EAL to use this new module is done in next commit.
> 
> The final goals:
> 
> - unify pci-blacklist, pci-whitelist, and virtual devices arguments
>   in one file
> - allow to register a virtual device driver from a dpdk extension
>   provided as a shared library. For that we will require to remove
>   references to rte_pmd_ring and rte_pmd_pcap in argument parsing code
> - clarify the API of eal_common_whitelist.c, and rework its code that is
>   often complex for no reason.
> - support arguments for PCI devices and possibly future non-PCI devices
>   (other than virtual devices) without effort.
> 
> 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 at 6wind.com>

Acked-by: Thomas Monjalon <thomas.monjalon at 6wind.com>

Applied for version 1.6.0r2 with title
	"devargs: introduce API and test"

-- 
Thomas


More information about the dev mailing list