app/testpmd: register driver specific commands
authorDavid Marchand <david.marchand@redhat.com>
Tue, 24 May 2022 20:06:42 +0000 (22:06 +0200)
committerAndrew Rybchenko <andrew.rybchenko@oktetlabs.ru>
Tue, 31 May 2022 15:09:12 +0000 (17:09 +0200)
commit592ab76f9f0f41993bebb44da85c37750a93ece9
treea9b32160c01c92783f9af5b70d8d80ba15319d5f
parentea0774fff5be5f07f168b458f69ecef8ddd7df02
app/testpmd: register driver specific commands

Introduce a testpmd API so that drivers can register specific commands.

A driver can list some files to compile with testpmd, by setting them
in the testpmd_sources (driver local) meson variable.
drivers/meson.build then takes care of appending this to a global meson
variable, and adding the driver to testpmd dependency.

Note: testpmd.h is fixed to that it is self sufficient when being
included.

Signed-off-by: David Marchand <david.marchand@redhat.com>
Acked-by: Thomas Monjalon <thomas@monjalon.net>
Acked-by: Andrew Rybchenko <andrew.rybchenko@oktetlabs.ru>
app/test-pmd/cmdline.c
app/test-pmd/meson.build
app/test-pmd/testpmd.c
app/test-pmd/testpmd.h
doc/guides/testpmd_app_ug/testpmd_funcs.rst
drivers/meson.build
meson.build