rawdev: fill NUMA socket ID in info
authorBruce Richardson <bruce.richardson@intel.com>
Mon, 6 Jul 2020 10:31:31 +0000 (11:31 +0100)
committerThomas Monjalon <thomas@monjalon.net>
Tue, 7 Jul 2020 17:18:04 +0000 (19:18 +0200)
commit26892215922595e117f19e522bf05183213392ff
treed42ce8d23dba83b85ebeb86110d3b5e2db80bb33
parent201a68c67839b879b39aa897b6bdb024a49ae436
rawdev: fill NUMA socket ID in info

The rawdev info struct has a socket_id field which was not filled in.

We can also omit the checks for the parameter struct being null, since
that is previously checked in the function.

Fixes: c88b3f2558ed ("rawdev: introduce raw device library")
Cc: stable@dpdk.org
Signed-off-by: Bruce Richardson <bruce.richardson@intel.com>
Acked-by: Hemant Agrawal <hemant.agrawal@nxp.com>
lib/librte_rawdev/rte_rawdev.c