Re: [dpdk-dev] [PATCH 20.11 1/5] rawdev: add private data length parameter to info fn

2020-07-12 Thread Xu, Rosen
Hi, Reviewed-by: Rosen Xu > -Original Message- > From: Richardson, Bruce > Sent: Thursday, July 09, 2020 23:21 > To: Nipun Gupta ; Hemant Agrawal > > Cc: dev@dpdk.org; Xu, Rosen ; Zhang, Tianfei > ; Li, Xiaoyun ; Wu, Jingjing > ; Satha Rao ; Mahipal > Challa ; Jerin Jacob ; > Richardso

[dpdk-dev] [PATCH 20.11 1/5] rawdev: add private data length parameter to info fn

2020-07-09 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 dev_info structure 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, and can also b