Skip to content

Commit f8dd9d8

Browse files
committed
dpdk: fix burst function output
Type: fix Fixes: 65105c9 Change-Id: I8dee4b560a49891f954d7eb8e79ea535cedeaa88 Signed-off-by: Damjan Marion <[email protected]>
1 parent e15245d commit f8dd9d8

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/plugins/dpdk/device/format.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -506,8 +506,8 @@ format_dpdk_burst_fn (u8 *s, va_list *args)
506506
p = (dir == VLIB_TX) ? rte_eth_fp_ops[xd->port_id].tx_pkt_burst :
507507
rte_eth_fp_ops[xd->port_id].rx_pkt_burst;
508508

509-
if (dladdr (p, &info) == 0)
510-
return 0;
509+
if (dladdr (p, &info) == 0 || info.dli_sname == 0)
510+
return format (s, "(not available)");
511511

512512
return format (s, "%s", info.dli_sname);
513513
}
@@ -670,7 +670,7 @@ format_dpdk_device (u8 * s, va_list * args)
670670
"");
671671
}
672672

673-
s = format (s, "%Urx burst function: %s\n", format_white_space, indent + 2,
673+
s = format (s, "%Urx burst function: %U\n", format_white_space, indent + 2,
674674
format_dpdk_burst_fn, xd, VLIB_TX);
675675

676676
/* $$$ MIB counters */

0 commit comments

Comments
 (0)