bbdev: reduce log level of a failure message
authorNicolas Chautru <nicolas.chautru@intel.com>
Wed, 8 Sep 2021 01:15:41 +0000 (18:15 -0700)
committerAkhil Goyal <gakhil@marvell.com>
Fri, 8 Oct 2021 19:31:07 +0000 (21:31 +0200)
Queue setup may genuinely fail when adding incremental queues
for a given priority level. In that case application would
attempt to configure a queue at a different priority level.
Not an actual error.

Signed-off-by: Nicolas Chautru <nicolas.chautru@intel.com>
Reviewed-by: Tom Rix <trix@redhat.com>
lib/bbdev/rte_bbdev.c

index fc37236..defddcf 100644 (file)
@@ -528,9 +528,10 @@ rte_bbdev_queue_configure(uint16_t dev_id, uint16_t queue_id,
        ret = dev->dev_ops->queue_setup(dev, queue_id, (conf != NULL) ?
                        conf : &dev_info.default_queue_conf);
        if (ret < 0) {
-               rte_bbdev_log(ERR,
-                               "Device %u queue %u setup failed", dev_id,
-                               queue_id);
+               /* This may happen when trying different priority levels */
+               rte_bbdev_log(INFO,
+                               "Device %u queue %u setup failed",
+                               dev_id, queue_id);
                return ret;
        }