c190daedb9
The ethdev library now registers commands with telemetry, and implements the callback functions. These commands allow the list of ethdev ports and the xstats and link status for a port to be queried. An example using ethdev commands is shown below: Connecting to /var/run/dpdk/rte/dpdk_telemetry.v2 {"version": "DPDK 20.05.0-rc0", "pid": 64379, "max_output_len": 16384} --> / {"/": ["/", "/ethdev/link_status", "/ethdev/list", "/ethdev/xstats", \ "/help", "/info"]} --> /ethdev/list {"/ethdev/list": [0, 1, 2, 3]} --> /ethdev/link_status,0 {"/ethdev/link_status": {"status": "UP", "speed": 10000, "duplex": \ "full-duplex"}} --> /ethdev/xstats,0 {"/ethdev/xstats": {"rx_good_packets": 0, "tx_good_packets": 0, \ <snip> "tx_priority7_xon_to_xoff_packets": 0}} Signed-off-by: Bruce Richardson <bruce.richardson@intel.com> Signed-off-by: Ciara Power <ciara.power@intel.com> Reviewed-by: Keith Wiles <keith.wiles@intel.com>
35 lines
678 B
Meson
35 lines
678 B
Meson
# SPDX-License-Identifier: BSD-3-Clause
|
|
# Copyright(c) 2017 Intel Corporation
|
|
|
|
name = 'ethdev'
|
|
sources = files('ethdev_private.c',
|
|
'ethdev_profile.c',
|
|
'ethdev_trace_points.c',
|
|
'rte_class_eth.c',
|
|
'rte_ethdev.c',
|
|
'rte_flow.c',
|
|
'rte_mtr.c',
|
|
'rte_tm.c')
|
|
|
|
headers = files('rte_ethdev.h',
|
|
'rte_ethdev_driver.h',
|
|
'rte_ethdev_core.h',
|
|
'rte_ethdev_pci.h',
|
|
'rte_ethdev_trace.h',
|
|
'rte_ethdev_trace_fp.h',
|
|
'rte_ethdev_vdev.h',
|
|
'rte_eth_ctrl.h',
|
|
'rte_dev_info.h',
|
|
'rte_flow.h',
|
|
'rte_flow_driver.h',
|
|
'rte_mtr.h',
|
|
'rte_mtr_driver.h',
|
|
'rte_tm.h',
|
|
'rte_tm_driver.h')
|
|
|
|
deps += ['net', 'kvargs', 'meter']
|
|
|
|
if dpdk_conf.has('RTE_LIBRTE_TELEMETRY')
|
|
deps += ['telemetry']
|
|
endif
|