summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjialv01 <Jianlin.Lv@arm.com>2019-09-10 00:23:55 +0800
committerAndrew Yourtchenko <ayourtch@gmail.com>2019-09-30 00:13:27 +0000
commit54e099f1011433ae4bd65449110fb974cccb28c4 (patch)
treec6c571be55c8bae58d6a71f5d07b09400a64a1ce
parent4aee0152254e65a78951abbbcfccc837936c38bb (diff)
build: fix running error with vmxnet3_test_plugin.so
vpp_api_test load vmxnet3_test_plugin.so error: "load_one_plugin:42:/vpp/lib/vpp_api_test_plugins/vmxnet3_test_plugin.so: undefined symbol: unformat_vlib_pci_addr" Type: fix Signed-off-by: Jianlin Lv <Jianlin.Lv@arm.com> Change-Id: I444aa05d0bc3c4f4f25082388243f1adb305dd0a (cherry picked from commit 082ebeba166accc87619c45e7de0c29c9f00d254)
-rw-r--r--src/vat/api_format.c14
1 files changed, 4 insertions, 10 deletions
diff --git a/src/vat/api_format.c b/src/vat/api_format.c
index 86457dc9218..afbfde0fdfb 100644
--- a/src/vat/api_format.c
+++ b/src/vat/api_format.c
@@ -18,6 +18,7 @@
*/
#include <vat/vat.h>
+#include <vlib/pci/pci.h>
#include <vpp/api/types.h>
#include <vppinfra/socket.h>
#include <vlibapi/api.h>
@@ -7537,16 +7538,9 @@ api_tap_delete_v2 (vat_main_t * vam)
}
uword
-unformat_pci_addr (unformat_input_t * input, va_list * args)
+unformat_vlib_pci_addr (unformat_input_t * input, va_list * args)
{
- struct pci_addr_t
- {
- u16 domain;
- u8 bus;
- u8 slot:5;
- u8 function:3;
- } *addr;
- addr = va_arg (*args, struct pci_addr_t *);
+ vlib_pci_addr_t *addr = va_arg (*args, vlib_pci_addr_t *);
u32 x[4];
if (!unformat (input, "%x:%x:%x.%x", &x[0], &x[1], &x[2], &x[3]))
@@ -7581,7 +7575,7 @@ api_virtio_pci_create (vat_main_t * vam)
{
random_mac = 0;
}
- else if (unformat (i, "pci-addr %U", unformat_pci_addr, &pci_addr))
+ else if (unformat (i, "pci-addr %U", unformat_vlib_pci_addr, &pci_addr))
;
else if (unformat (i, "features 0x%llx", &features))
;