---
name: "rte_bbdev_op_turbo_enc"
section: "3"
platform: "linux"
package: "dpdk-doc"
version: "24.11.4-0+deb13u1"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/rte_bbdev_op_turbo_enc"
---

# rte\_bbdev\_op\_turbo\_enc(3)

## NAME

rte\_bbdev\_op\_turbo\_enc

## SYNOPSIS

`#include <rte_bbdev_op.h>`

### Data Fields

struct **rte\_bbdev\_op\_data** **input**\
 struct **rte\_bbdev\_op\_data** **output**\
 uint32\_t **op\_flags**\
 uint8\_t **rv\_index**\
 uint8\_t **code\_block\_mode**\

## Detailed Description

Operation structure for Turbo encode. An operation can be performed on one CB at a time 'CB-mode'. An operation can pbe erformd on one or multiple CBs that logically belong to one TB 'TB-mode'.

In CB-mode, CRC24A/B is an optional operation. K size parameter is not affected by CRC24A/B inclusion, this only affects the inbound mbuf data length. Not all BBDEV PMDs are capable of CRC24A/B calculation. Flags RTE\_BBDEV\_TURBO\_CRC\_24A\_ATTACH and RTE\_BBDEV\_TURBO\_CRC\_24B\_ATTACH informs the application with relevant capability. These flags can be set in the op\_flags parameter to indicate BBDEV to calculate and append CRC24A to CB before going forward with Turbo encoding.

In TB-mode, CRC24A is assumed to be pre-calculated and appended to the inbound TB mbuf data buffer.

The output mbuf data structure is expected to be allocated by the application with enough room for the output data.

Definition at line **681** of file **rte\_bbdev\_op.h**.

## Field Documentation

### struct rte\_bbdev\_op\_data input

The input CB or TB data

Definition at line **683** of file **rte\_bbdev\_op.h**.

### struct rte\_bbdev\_op\_data output

The rate matched CB or TB output buffer

Definition at line **685** of file **rte\_bbdev\_op.h**.

### uint32\_t op\_flags

Flags from rte\_bbdev\_op\_te\_flag\_bitmasks

Definition at line **687** of file **rte\_bbdev\_op.h**.

### uint8\_t rv\_index

Rv index for rate matching \[0:3\]

Definition at line **690** of file **rte\_bbdev\_op.h**.

### uint8\_t code\_block\_mode

\[0 - TB : 1 - CB\]

Definition at line **692** of file **rte\_bbdev\_op.h**.

### struct rte\_bbdev\_op\_enc\_turbo\_cb\_params cb\_params

Struct which stores Code Block specific parameters

Definition at line **695** of file **rte\_bbdev\_op.h**.

### struct rte\_bbdev\_op\_enc\_turbo\_tb\_params tb\_params

Struct which stores Transport Block specific parameters

Definition at line **697** of file **rte\_bbdev\_op.h**.

## Author

Generated automatically by Doxygen for DPDK from the source code.
