rawdev: pass the device id as parameter to selftest
authorBruce Richardson <bruce.richardson@intel.com>
Tue, 2 Jul 2019 09:56:08 +0000 (10:56 +0100)
committerThomas Monjalon <thomas@monjalon.net>
Tue, 2 Jul 2019 15:04:30 +0000 (17:04 +0200)
commit863fd2930bbe9c982b042584d513d190487c983a
tree6add51b9e9bbee07c6c96801cb4455c96e9be752
parent88a81bcecb7b94ec3b0b1760bf7ab034df61cf8d
rawdev: pass the device id as parameter to selftest

When running self-tests, the driver needs to know the device on which to
run the tests, so we need to take the device ID as parameter. Only the
skeleton driver is providing this selftest capability right now, so we can
easily update it for this change.

Signed-off-by: Bruce Richardson <bruce.richardson@intel.com>
Acked-by: Hemant Agrawal <hemant.agrawal@nxp.com>
drivers/raw/skeleton_rawdev/skeleton_rawdev.c
drivers/raw/skeleton_rawdev/skeleton_rawdev.h
drivers/raw/skeleton_rawdev/skeleton_rawdev_test.c
lib/librte_rawdev/rte_rawdev.c
lib/librte_rawdev/rte_rawdev_pmd.h