summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorAlok Mishra <almishra@marvell.com>2024-04-26 18:40:13 +0500
committerDamjan Marion <dmarion@0xa5.net>2024-05-13 14:59:38 +0000
commit5233ee29cc1e8b209e92e05ab699ee900e8c0b44 (patch)
tree06e2d72c4144f8d84043ffab6cca829c5af83fbf /src
parent9e45a5732bd38d703ad8f055c2c16ea519607cf9 (diff)
dev: fix mac address dump in trace output
"port->attr.hw_addr" is set during the port initialization. It won't be updated if the mac address of the port is changed via the vpp command line. Use "port->primary_hw_addr" to dump the updated mac address correclty. Type: fix Fixes: 38c619115b Change-Id: I6c99fcfdfae67efb3606e17f36781c56716ff7ea Signed-off-by: Alok Mishra <almishra@marvell.com>
Diffstat (limited to 'src')
-rw-r--r--src/vnet/dev/format.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vnet/dev/format.c b/src/vnet/dev/format.c
index ed83a0eba95..f599c0f8b85 100644
--- a/src/vnet/dev/format.c
+++ b/src/vnet/dev/format.c
@@ -101,7 +101,7 @@ format_vnet_dev_port_info (u8 *s, va_list *args)
u32 indent = format_get_indent (s);
s = format (s, "Hardware Address is %U", format_vnet_dev_hw_addr,
- &port->attr.hw_addr);
+ &port->primary_hw_addr);
s = format (s, ", %u RX queues (max %u), %u TX queues (max %u)",
pool_elts (port->rx_queues), port->attr.max_rx_queues,
pool_elts (port->tx_queues), port->attr.max_tx_queues);