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

2020-08-16 Thread Xu, Rosen
Hi, > -Original Message- > From: Richardson, Bruce > Sent: Thursday, August 13, 2020 19:28 > To: Nipun Gupta ; Hemant Agrawal > > Cc: dev@dpdk.org; Richardson, Bruce ; Xu, > Rosen ; Mcnamara, John > ; Kovacevic, Marko > ; Zhang, Tianfei ; Li, > Xiaoyun ; Wu, Jingjing > Subject: [PATCH v

[dpdk-dev] [PATCH v2 1/7] rawdev: add private data length parameter to info 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 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