Remove unused capabilities, use dummy operation as start count for
number of queues.

Signed-off-by: Hernan Vargas <hernan.var...@intel.com>

Reviewed-by: Maxime Coquelin <maxime.coque...@redhat.com>
---
 drivers/baseband/acc/rte_acc100_pmd.c | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/drivers/baseband/acc/rte_acc100_pmd.c 
b/drivers/baseband/acc/rte_acc100_pmd.c
index ca809aa792..23c8e47335 100644
--- a/drivers/baseband/acc/rte_acc100_pmd.c
+++ b/drivers/baseband/acc/rte_acc100_pmd.c
@@ -877,7 +877,6 @@ acc100_dev_info_get(struct rte_bbdev *dev,
 {
        struct acc_device *d = dev->data->dev_private;
        int i;
-
        static const struct rte_bbdev_op_cap bbdev_capabilities[] = {
                {
                        .type = RTE_BBDEV_OP_TURBO_DEC,
@@ -889,7 +888,6 @@ acc100_dev_info_get(struct rte_bbdev *dev,
                                        RTE_BBDEV_TURBO_EARLY_TERMINATION |
                                        RTE_BBDEV_TURBO_DEC_INTERRUPTS |
                                        RTE_BBDEV_TURBO_NEG_LLR_1_BIT_IN |
-                                       RTE_BBDEV_TURBO_MAP_DEC |
                                        RTE_BBDEV_TURBO_DEC_TB_CRC_24B_KEEP |
                                        RTE_BBDEV_TURBO_DEC_CRC_24B_DROP |
                                        RTE_BBDEV_TURBO_DEC_SCATTER_GATHER,
@@ -984,12 +982,13 @@ acc100_dev_info_get(struct rte_bbdev *dev,
                        d->acc_conf.q_ul_5g.num_qgroups;
        dev_info->num_queues[RTE_BBDEV_OP_LDPC_ENC] = 
d->acc_conf.q_dl_5g.num_aqs_per_groups *
                        d->acc_conf.q_dl_5g.num_qgroups;
+       dev_info->num_queues[RTE_BBDEV_OP_FFT] = 0;
        dev_info->queue_priority[RTE_BBDEV_OP_TURBO_DEC] = 
d->acc_conf.q_ul_4g.num_qgroups;
        dev_info->queue_priority[RTE_BBDEV_OP_TURBO_ENC] = 
d->acc_conf.q_dl_4g.num_qgroups;
        dev_info->queue_priority[RTE_BBDEV_OP_LDPC_DEC] = 
d->acc_conf.q_ul_5g.num_qgroups;
        dev_info->queue_priority[RTE_BBDEV_OP_LDPC_ENC] = 
d->acc_conf.q_dl_5g.num_qgroups;
        dev_info->max_num_queues = 0;
-       for (i = RTE_BBDEV_OP_TURBO_DEC; i <= RTE_BBDEV_OP_LDPC_ENC; i++)
+       for (i = RTE_BBDEV_OP_NONE; i <= RTE_BBDEV_OP_LDPC_ENC; i++)
                dev_info->max_num_queues += dev_info->num_queues[i];
        dev_info->queue_size_lim = ACC_MAX_QUEUE_DEPTH;
        dev_info->hardware_accelerated = true;
-- 
2.37.1

Reply via email to