]> git.droids-corp.org - dpdk.git/commitdiff
bbdev: add capability for 4G CB CRC drop
authorNicolas Chautru <nicolas.chautru@intel.com>
Wed, 8 Sep 2021 01:15:38 +0000 (18:15 -0700)
committerAkhil Goyal <gakhil@marvell.com>
Fri, 8 Oct 2021 19:31:07 +0000 (21:31 +0200)
Adding option to drop CRC24B to align with existing
feature for 5G

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

index 8d796b15bd17588006fdc5ef3b543a9b4547bbe9..f020836f886d6c3a5f55e8dcc1447ccddd6ba43f 100644 (file)
@@ -149,6 +149,8 @@ op_decoder_flag_strtoul(char *token, uint32_t *op_flag_value)
                *op_flag_value = RTE_BBDEV_TURBO_DEC_SCATTER_GATHER;
        else if (!strcmp(token, "RTE_BBDEV_TURBO_DEC_TB_CRC_24B_KEEP"))
                *op_flag_value = RTE_BBDEV_TURBO_DEC_TB_CRC_24B_KEEP;
+       else if (!strcmp(token, "RTE_BBDEV_TURBO_DEC_CRC_24B_DROP"))
+               *op_flag_value = RTE_BBDEV_TURBO_DEC_CRC_24B_DROP;
        else {
                printf("The given value is not a turbo decoder flag\n");
                return -1;
index 7c44ddd578df4c83c92718a8f339f60e3b7b3a86..55128594c447d5d947dc2e5589d46b0e9bc1ab45 100644 (file)
@@ -114,7 +114,10 @@ enum rte_bbdev_op_td_flag_bitmasks {
        /** Set to keep CRC24B bits appended while decoding. Only usable when
         * decoding Transport Block mode.
         */
-       RTE_BBDEV_TURBO_DEC_TB_CRC_24B_KEEP = (1ULL << 16)
+       RTE_BBDEV_TURBO_DEC_TB_CRC_24B_KEEP = (1ULL << 16),
+       /** Set to drop CRC24B bits not to be appended while decoding.
+        */
+       RTE_BBDEV_TURBO_DEC_CRC_24B_DROP = (1ULL << 17)
 };