Re: [dpdk-dev] [PATCH v2 3/7] rawdev: add private data length parameter to config fn

2020-09-04 Thread Bruce Richardson
On Thu, Aug 13, 2020 at 12:28:01PM +0100, Bruce Richardson wrote: > Currently with the rawdev API there is no way to check that the structure > passed in via the dev_private pointer in the structure passed to configure > API is of the correct type - it's just checked that it is non-NULL. Adding > i

[dpdk-dev] [PATCH v2 3/7] rawdev: add private data length parameter to config fn

2020-08-13 Thread Bruce Richardson
Currently with the rawdev API there is no way to check that the structure passed in via the dev_private pointer in the structure passed to configure API is of the correct type - it's just checked that it is non-NULL. Adding in the length of the expected structure provides a measure of typechecking,