rawdev: add private data size to queue config inputs
authorBruce Richardson <bruce.richardson@intel.com>
Thu, 10 Sep 2020 14:36:06 +0000 (15:36 +0100)
committerThomas Monjalon <thomas@monjalon.net>
Fri, 11 Sep 2020 09:51:03 +0000 (11:51 +0200)
commitf574ed8116e39588dcc1b1bef8dd7b96e8d431bb
tree65d368b79e01f8e2a08a470e6b569886ab6795b1
parent8db9dce72d4abee4c3a66a0eb163c469bae4ad9e
rawdev: add private data size to queue config inputs

The queue setup and queue defaults query functions take a void * parameter
as configuration data, preventing any compile-time checking of the
parameters and limiting runtime checks. Adding in the length of the
expected structure provides a measure of typechecking, and can also be used
for ABI compatibility in future, since ABI changes involving structs almost
always involve a change in size.

Signed-off-by: Bruce Richardson <bruce.richardson@intel.com>
Acked-by: Nipun Gupta <nipun.gupta@nxp.com>
doc/guides/rel_notes/release_20_11.rst
drivers/raw/ntb/ntb.c
drivers/raw/skeleton/skeleton_rawdev.c
drivers/raw/skeleton/skeleton_rawdev_test.c
examples/ntb/ntb_fwd.c
lib/librte_rawdev/rte_rawdev.c
lib/librte_rawdev/rte_rawdev.h
lib/librte_rawdev/rte_rawdev_pmd.h