[dpdk-dev] [PATCH v3 6/6] bbdev: reduce warning level for one scenario
Tom Rix
trix at redhat.com
Sun Sep 12 14:54:45 CEST 2021
On 9/7/21 6:15 PM, Nicolas Chautru wrote:
> 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 at intel.com>
> ---
> lib/bbdev/rte_bbdev.c | 7 ++++---
> 1 file changed, 4 insertions(+), 3 deletions(-)
>
> diff --git a/lib/bbdev/rte_bbdev.c b/lib/bbdev/rte_bbdev.c
> index fc37236..defddcf 100644
> --- a/lib/bbdev/rte_bbdev.c
> +++ b/lib/bbdev/rte_bbdev.c
> @@ -528,9 +528,10 @@ struct rte_bbdev *
> 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);
This change is just changing the log level, which is fine.
I am looking at how the error handling is done for the function.
It seems like the bailing is done in the middle of change the queue state.
ex/ the block above this one
/* Release existing queue ... */
Does this leave the queue in a bad state ?
Tom
> return ret;
> }
>
More information about the dev
mailing list