Installing custom DPDK version¶
You should install a custom DPDK version if:
- Your distribution does not propose any DPDK package (obsly).
- You want to use a different version of what is proposed in your distro.
- Your NICs are not supported by your distro package (which can be the case for vendors like Mellanox/Broadcom etc).
- Or, you want to tune :ref:DPDK options.
First, note that dpdk-burst-replay is compatible (ie, checked) with DPDK LTS versions. Please refer to DPDK compatible versions section.
Please also note that this doc section is not intended to replace the official DPDK compiling guide, but is more focused on giving additional tips related to dpdk-burst-replay purposes.
$> wget https://fast.dpdk.org/rel/dpdk-18.11.1.tar.xz && tar xvf dpdk-18.11.1.tar.xz
DPDK build options are mainly located on config/common_base file. Here are some example that could be helpful:
In lasts versions of DPDK the memory management have changed and there is an hardcoded limit of memory size that can be allocated. And, as dpdk-burst-replay put in cache all pcap packets before sending them it could be an issue if you want to replay big pcap dumps. To be able to use up to 128Go (instead of 32Go by default), set 131272 here:
By default DPDK libs are compiled in static, if you want them to be shared ones, set to ‘y’ this line:
Once your configurations have been made, you can follow the official DPDK compiling guide. For example:
$> make config T=x86_64-native-linux-gcc $> make -j99 T=x86_64-native-linux-gcc
To install compiled DPDK version into /usr/local, just type:
$> sudo make install
NOTE: You can change the destination folder by specifying a different DESTDIR:
$> make DESTDIR=~/dpdk-18.11.1 install