rawdev: allow drivers to return error from info query
authorBruce Richardson <bruce.richardson@intel.com>
Thu, 10 Sep 2020 14:36:04 +0000 (15:36 +0100)
committerThomas Monjalon <thomas@monjalon.net>
Fri, 11 Sep 2020 09:50:54 +0000 (11:50 +0200)
commitf150dd8839dd6c7a386cc98a5b0025684a31bdc1
tree06208cd26d24a87c61af45234b257bc77c36d4fa
parent10b71caecbe1cddcbb65c050ca775fba575e88db
rawdev: allow drivers to return error from info query

Since we now allow some parameter checking inside the driver info_get()
functions, it makes sense to allow error return from those functions to the
caller. Therefore we change the driver callback return type from void to
int.

Signed-off-by: Bruce Richardson <bruce.richardson@intel.com>
Reviewed-by: Rosen Xu <rosen.xu@intel.com>
Acked-by: Nipun Gupta <nipun.gupta@nxp.com>
doc/guides/rel_notes/release_20_11.rst
drivers/raw/ifpga/ifpga_rawdev.c
drivers/raw/ioat/ioat_rawdev.c
drivers/raw/ntb/ntb.c
drivers/raw/skeleton/skeleton_rawdev.c
lib/librte_rawdev/rte_rawdev.c
lib/librte_rawdev/rte_rawdev_pmd.h