[dpdk-dev] [PATCH 01/11] telemetry: initial telemetry infrastructure

Stephen Hemminger stephen at networkplumber.org
Fri Aug 24 01:17:06 CEST 2018


On Thu, 23 Aug 2018 13:08:03 +0100
Ciara Power <ciara.power at intel.com> wrote:

> +
> +static int
> +telemetry_probe(struct rte_vdev_device *vdev)
> +{
> +	int ret;
> +
> +	RTE_SET_USED(vdev);
> +	ret = rte_telemetry_init(rte_socket_id());
> +	if (ret < 0) {
> +		printf("Error - Telemetry initialisation failed\n");
> +		return -1;
> +	}
> +	return 0;
> +}
> +
> +static int
> +telemetry_remove(struct rte_vdev_device *vdev)
> +{
> +	const char *name;
> +	name = rte_vdev_device_name(vdev);
> +	printf("Uninitialising the device: %s\n", name);

Please use DPDK (rte) logging for all messages.


More information about the dev mailing list