dev: fix mac address dump in trace output 29/40829/3
authorAlok Mishra <almishra@marvell.com>
Fri, 26 Apr 2024 13:40:13 +0000 (18:40 +0500)
committerDamjan Marion <dmarion@0xa5.net>
Mon, 13 May 2024 14:59:38 +0000 (14:59 +0000)
commit5233ee29cc1e8b209e92e05ab699ee900e8c0b44
tree06e2d72c4144f8d84043ffab6cca829c5af83fbf
parent9e45a5732bd38d703ad8f055c2c16ea519607cf9
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>
src/vnet/dev/format.c