devargs: restore empty devargs
authorDavid Marchand <david.marchand@6wind.com>
Tue, 24 Feb 2015 09:41:31 +0000 (10:41 +0100)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Tue, 24 Feb 2015 19:23:11 +0000 (20:23 +0100)
commit23df14d1baf53eb014207f438beee81677d46186
treed04ca9e4fb11de7b5123af95ade1548c1e2ac707
parent1733be6d314722228457b2a707dc1f80914716ba
devargs: restore empty devargs

Following commit c07691ae1089, an implicit change has been done in the
devargs API.
This triggers problem in virtual pmds that did not check for parameters
validity as it was implicitely valid.

Fix this by restoring the empty argument as "" and add a note in the api.
Restore associated tests.

Fixes: c07691ae1089 ("devargs: remove limit on parameters length")

Reported-by: Tetsuya Mukawa <mukawa@igel.co.jp>
Signed-off-by: David Marchand <david.marchand@6wind.com>
Tested-by: Tetsuya Mukawa <mukawa@igel.co.jp>
app/test/test_devargs.c
lib/librte_eal/common/eal_common_devargs.c
lib/librte_eal/common/include/rte_devargs.h