diff options
author | Dave Barach <dave@barachs.net> | 2020-12-06 08:15:18 -0500 |
---|---|---|
committer | Damjan Marion <dmarion@me.com> | 2020-12-06 20:02:41 +0000 |
commit | ecf98c095c7c409e7866e625444020b7bd568819 (patch) | |
tree | ee8076a15d5bae5ae853369617948e4a6106f6a3 /src/vlib/linux/pci.c | |
parent | 1135f65586513c7cabb0dca063d1d2f97b07d7cd (diff) |
vlib: vlib_log for "linux device up" warnings
Make it easy to figure out why vpp didn't bind a particular hardware
interface in the most common case: the Linux interface is up.
Type: improvement
Signed-off-by: Dave Barach <dave@barachs.net>
Change-Id: I99534dd91e0030601c09171a9fbc9ad45af6bf08
Diffstat (limited to 'src/vlib/linux/pci.c')
-rw-r--r-- | src/vlib/linux/pci.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/vlib/linux/pci.c b/src/vlib/linux/pci.c index 1caf0c9c229..7c18505bbfc 100644 --- a/src/vlib/linux/pci.c +++ b/src/vlib/linux/pci.c @@ -523,9 +523,10 @@ vlib_pci_bind_to_uio (vlib_main_t * vm, vlib_pci_addr_t * addr, if (ifr.ifr_flags & IFF_UP) { - error = clib_error_return (0, "Skipping PCI device %U as host " - "interface %s is up", - format_vlib_pci_addr, addr, e->d_name); + vlib_log (VLIB_LOG_LEVEL_WARNING, pci_main.log_default, + "Skipping PCI device %U as host " + "interface %s is up", format_vlib_pci_addr, addr, + e->d_name); close (fd); goto done; } |