Fix ibv_cmd_query_device_ex to return valid output

Make sure to return valid output by memset the extended fields to zero.
No need to deal with specific fields any more.

Currently, extended fields will be assigned to some value or 0 depending
on response from the command. When adding a new extended field, relevant
variables must be cleared if no response got from the kernel.

Signed-off-by: Bodong Wang <>
Reviewed-by: Yishai Hadas <>
Signed-off-by: Doug Ledford <>
1 file changed