app/bbdev: fix HARQ error messages
authorMin Hu (Connor) <humin29@huawei.com>
Mon, 26 Apr 2021 00:56:59 +0000 (08:56 +0800)
committerAkhil Goyal <gakhil@marvell.com>
Wed, 5 May 2021 13:57:59 +0000 (15:57 +0200)
The logging should show context by printing the two variables which
compared to each other. 'nb_harq_inputs', not 'nb_hard_outputs';
'nb_harq_outputs', not 'nb_hard_outputs'.

This patch corrected misused variable.

Fixes: d819c08327f3 ("app/bbdev: update for 5GNR")
Cc: stable@dpdk.org
Signed-off-by: Min Hu (Connor) <humin29@huawei.com>
Acked-by: Nicolas Chautru <nicolas.chautru@intel.com>
app/test-bbdev/test_bbdev_perf.c

index f94e2a9..469597b 100644 (file)
@@ -372,14 +372,14 @@ check_dev_cap(const struct rte_bbdev_info *dev_info)
                        if (nb_harq_inputs > cap->num_buffers_hard_out) {
                                printf(
                                        "Too many HARQ inputs defined: %u, max: %u\n",
-                                       nb_hard_outputs,
+                                       nb_harq_inputs,
                                        cap->num_buffers_hard_out);
                                return TEST_FAILED;
                        }
                        if (nb_harq_outputs > cap->num_buffers_hard_out) {
                                printf(
                                        "Too many HARQ outputs defined: %u, max: %u\n",
-                                       nb_hard_outputs,
+                                       nb_harq_outputs,
                                        cap->num_buffers_hard_out);
                                return TEST_FAILED;
                        }