]> git.droids-corp.org - dpdk.git/commitdiff
vfio: lower the priority of startup messages
authorStephen Hemminger <stephen@networkplumber.org>
Fri, 12 Jun 2020 00:10:04 +0000 (17:10 -0700)
committerDavid Marchand <david.marchand@redhat.com>
Tue, 7 Jul 2020 11:51:28 +0000 (13:51 +0200)
The startup of VFIO is too noisy. Logging is expensive on some
systems, and distracting to the user.

It should not be logging at NOTICE level, reduce it to INFO level.
It really should be DEBUG here but that would hide it by default.

Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
Acked-by: Anatoly Burakov <anatoly.burakov@intel.com>
lib/librte_eal/linux/eal_vfio.c

index 14358949e9a0ed9225c6ee96c6437c26f3d989b0..2a1eda5ea87d9813a4153f10882048ad626c82a1 100644 (file)
@@ -895,7 +895,7 @@ rte_vfio_setup_device(const char *sysfs_base, const char *dev_addr,
                /* we have successfully initialized VFIO, notify user */
                const struct vfio_iommu_type *t =
                                default_vfio_cfg->vfio_iommu_type;
-               RTE_LOG(NOTICE, EAL, "  using IOMMU type %d (%s)\n",
+               RTE_LOG(INFO, EAL, "  using IOMMU type %d (%s)\n",
                                t->type_id, t->name);
        }
 
@@ -1072,7 +1072,7 @@ rte_vfio_enable(const char *modname)
 
        /* check if we have VFIO driver enabled */
        if (default_vfio_cfg->vfio_container_fd != -1) {
-               RTE_LOG(NOTICE, EAL, "VFIO support initialized\n");
+               RTE_LOG(INFO, EAL, "VFIO support initialized\n");
                default_vfio_cfg->vfio_enabled = 1;
        } else {
                RTE_LOG(NOTICE, EAL, "VFIO support could not be initialized\n");
@@ -1150,7 +1150,7 @@ vfio_set_iommu_type(int vfio_container_fd)
                int ret = ioctl(vfio_container_fd, VFIO_SET_IOMMU,
                                t->type_id);
                if (!ret) {
-                       RTE_LOG(NOTICE, EAL, "  using IOMMU type %d (%s)\n",
+                       RTE_LOG(INFO, EAL, "  using IOMMU type %d (%s)\n",
                                        t->type_id, t->name);
                        return t;
                }