ethdev: fix MAC address in telemetry device info
authorDavid Marchand <david.marchand@redhat.com>
Wed, 16 Feb 2022 14:13:16 +0000 (15:13 +0100)
committerFerruh Yigit <ferruh.yigit@intel.com>
Wed, 16 Feb 2022 16:30:04 +0000 (17:30 +0100)
commitffe77e911f6a3d62757bc740670c4fda28f882f2
tree5588d7a5a12066ba8b682e022f5fb2d06fbc26e7
parent23abab4f14d3e2425e74c296769d21b79d696096
ethdev: fix MAC address in telemetry device info

The right size for a human readable MAC is RTE_ETHER_ADDR_FMT_SIZE.
While at it, the net library provides a helper for MAC address
formatting. Prefer it.

Fixes: 58b43c1ddfd1 ("ethdev: add telemetry endpoint for device info")
Cc: stable@dpdk.org
Reported-by: Christophe Fontaine <cfontain@redhat.com>
Signed-off-by: David Marchand <david.marchand@redhat.com>
Reviewed-by: Ferruh Yigit <ferruh.yigit@intel.com>
lib/ethdev/rte_ethdev.c