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: c88b3f2558 ("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>
This commit is contained in:
Bruce Richardson 2020-07-06 11:31:31 +01:00 committed by Thomas Monjalon
parent 201a68c678
commit 2689221592

View File

@ -92,11 +92,9 @@ rte_rawdev_info_get(uint16_t dev_id, struct rte_rawdev_info *dev_info)
(*rawdev->dev_ops->dev_info_get)(rawdev, dev_info->dev_private);
}
if (dev_info) {
dev_info->driver_name = rawdev->driver_name;
dev_info->device = rawdev->device;
}
dev_info->driver_name = rawdev->driver_name;
dev_info->device = rawdev->device;
dev_info->socket_id = rawdev->socket_id;
return 0;
}