2. SW Turbo Poll Mode Driver
The SW Turbo PMD (baseband_turbo_sw) provides a software only poll mode bbdev driver that can optionally utilize Intel optimized libraries for LTE and 5GNR Layer 1 workloads acceleration.
Note that the driver can also be built without any dependency with reduced functionality for maintenance purpose.
To enable linking to the SDK libraries see detailed installation section below. Two flags can be enabled depending on whether the target machine can support AVX2 and AVX512 instructions sets and the related SDK libraries for vectorized signal processing functions are installed : - CONFIG_RTE_BBDEV_SDK_AVX2 - CONFIG_RTE_BBDEV_SDK_AVX512 By default these 2 flags are disabled by default. For AVX2 machine and SDK library installed then the first flag can be enabled. For AVX512 machine and SDK library installed then both flags can be enabled for full real time capability.
This PMD supports the functions: FEC, Rate Matching and CRC functions detailed in the Features section.
SW Turbo PMD can support for the following capabilities when the SDK libraries are used:
For the LTE encode operation:
For the LTE decode operation:
For the 5G NR LDPC encode operation:
For the 5G NR LDPC decode operation:
- In-place operations for encode and decode are not supported
2.3.1. FlexRAN SDK Download
As an option it is possible to link this driver with FleXRAN SDK libraries which can enable real time signal processing using AVX instructions.
These libraries are available through this link.
After download is complete, the user needs to unpack and compile on their system before building DPDK.
The following table maps DPDK versions with past FlexRAN SDK releases:
|DPDK version||FlexRAN FEC SDK release|
2.3.2. FlexRAN SDK Installation
Note that the installation of these libraries is optional.
- The following are pre-requisites for building FlexRAN SDK Libraries:
- An AVX2 or AVX512 supporting machine
- CentOS Linux release 7.2.1511 (Core) operating system is advised
- Intel ICC 18.0.1 20171018 compiler or more recent and related libraries ICC is available with a free community license.
The following instructions should be followed in this exact order:
Set the environment variables:
source <path-to-icc-compiler-install-folder>/linux/bin/compilervars.sh intel64 -platform linux
Run the SDK extractor script and accept the license:
cd <path-to-workspace> ./FlexRAN-FEC-SDK-19-04.sh
Generate makefiles based on system configuration:
cd <path-to-workspace>/FlexRAN-FEC-SDK-19-04/sdk/ ./create-makefiles-linux.sh
A build folder is generated in this form
build-<ISA>-<CC>, enter that folder and install:
cd build-avx512-icc/ make && make install
In order to enable this virtual bbdev PMD, the user may:
- Build the
FLEXRAN SDKlibraries (explained in Installation section).
- Export the environmental variables
FLEXRAN_SDKto the path where the FlexRAN SDK libraries were installed. And
DIR_WIRELESS_SDKto the path where the libraries were extracted.
export FLEXRAN_SDK=<path-to-workspace>/FlexRAN-FEC-SDK-19-04/sdk/build-avx2-icc/install export DIR_WIRELESS_SDK=<path-to-workspace>/FlexRAN-FEC-SDK-19-04/sdk/build-avx2-icc/
CONFIG_RTE_BBDEV_SDK_AVX512=yin DPDK common configuration file
config/common_baseto be able to use the SDK libraries as mentioned above. For AVX2 machine it is possible to only enable CONFIG_RTE_BBDEV_SDK_AVX2 for limited 4G functionality. If no flag are set the PMD driver will still build but its capabilities will be limited accordingly.
To use the PMD in an application, user must:
rte_vdev_init("baseband_turbo_sw")within the application.
--vdev="baseband_turbo_sw"in the EAL options, which will call
The following parameters (all optional) can be provided in the previous two calls:
socket_id: Specify the socket where the memory for the device is going to be allocated (by default, socket_id will be the socket where the core that is creating the PMD is running on).
max_nb_queues: Specify the maximum number of queues in the device (default is
./test-bbdev.py -e="--vdev=baseband_turbo_sw,socket_id=0,max_nb_queues=8" \ -c validation -v ./turbo_*_default.data