summaryrefslogtreecommitdiffstats
path: root/src/plugins
diff options
context:
space:
mode:
authorSteven <sluong@cisco.com>2018-10-15 10:22:53 -0700
committerFlorin Coras <florin.coras@gmail.com>2018-10-16 01:42:37 +0000
commitb78d6a0b3c2e575343038b15b36c8682ad002edc (patch)
treed6c29349063cc0c6071469537a147be92adeaaba /src/plugins
parentac64b71b2893341b2e342865c209ee63c2dc3138 (diff)
vmxnet3: vmxnet3_test_plugin.so: undefined symbol: format_vlib_pci_addr [VPP-1456]
When using vpp_api_test, there is an undefined symbol error for format_vlib_pci_addr when vmxnet3_test_plugin.so is loaded. The cause is due to vlib not included in vpp_api_test. Remove the reference for vlib.so in vmxnet3_test. Change-Id: I37c00dfe2f843d99ad6c4fc7af6ed10bac4c2df8 Signed-off-by: Steven <sluong@cisco.com> (cherry picked from commit 3d29e83112a349b7d27ef792463f246b18115d3e)
Diffstat (limited to 'src/plugins')
-rw-r--r--src/plugins/vmxnet3/vmxnet3_test.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/plugins/vmxnet3/vmxnet3_test.c b/src/plugins/vmxnet3/vmxnet3_test.c
index b08f61b0bd9..1b5fd5b7c9a 100644
--- a/src/plugins/vmxnet3/vmxnet3_test.c
+++ b/src/plugins/vmxnet3/vmxnet3_test.c
@@ -227,6 +227,14 @@ api_vmxnet3_dump (vat_main_t * vam)
return ret;
}
+static u8 *
+format_pci_addr (u8 * s, va_list * va)
+{
+ vlib_pci_addr_t *addr = va_arg (*va, vlib_pci_addr_t *);
+ return format (s, "%04x:%02x:%02x.%x", addr->domain, addr->bus,
+ addr->slot, addr->function);
+}
+
static void
vl_api_vmxnet3_details_t_handler (vl_api_vmxnet3_details_t * mp)
{
@@ -246,7 +254,7 @@ vl_api_vmxnet3_details_t_handler (vl_api_vmxnet3_details_t * mp)
" state %s\n",
mp->if_name, ntohl (mp->sw_if_index), format_ethernet_address,
mp->hw_addr, mp->version,
- format_vlib_pci_addr, &pci_addr,
+ format_pci_addr, &pci_addr,
ntohs (mp->rx_next),
ntohs (mp->rx_qid),
ntohs (mp->rx_qsize), ntohs (mp->rx_fill[0]),