Changes between Initial Version and Version 1 of DPDKNotes

08/02/13 18:13:55 (9 years ago)



  • DPDKNotes

    v1 v1  
     1= Notes on Libtrace Intel Data Plane Development Kit Support =
     3'''This format is considered experimental and has limitations that should be understood before using'''
     5The Intel Data Plane Development Kit format allows packets to be captured in a truly zero copy manner and provides direct access to every packet with almost zero overhead. This means more CPU is left for your application to process the packet. Libtraces Intel DPDK capture format works in a very similar way to the DAG capture format.
     6The format supports most Intel NIC's see the release notes pdf.
     8Documentation and source code for the Intel DPDK can be downloaded from [] the links are in a box at the bottom of the page.
     10= Basic Setup Guide for Intel DPDK for libtrace =
     11'''It is strongly recommended that you build and test Intel DPDK with it's included samples and verify they are functioning correctly before attempting to use build libtrace with DPDK '''
     131. Read the DPDK Getting Started Guide and make sure the prerequisites are met such as hugepages.
     142. Download DPDK from the Intel website
     153. Extract the archive:
     18    ~unzip -d IntelDPDK
     19    ~cd IntelDPDK
     224. Apply the patch named DPDK_libtrace.patch included within libtrace, assuming we have copied this into the newly created IntelDPDK folder. This is required to allow libtrace to create shared libraries otherwise building libtrace will fail.
     25    ~patch -p0 < DPDKLibtracePatch.diff
     285.Apply optional patches (For a specific card HW timestamping etc.. make sure changes are also made to libtrace defines where needed)[[BR]]
     306.Make the DPDK library
     33    ~cd DPDK
     34    ~make install T=x86_64-default-linuxapp-gcc
     377.Export RTE_SDK and RTE_TARGET
     40    ~export RTE_SDK=`pwd`
     41    ~export RTE_TARGET=x86_64-default-linuxapp-gcc
     448. Load the DPDK modules
     47    ~cd $RTE_TARGET/kmod
     48    ~sudo modprobe uio
     49    ~sudo insmod ./igb_uio.ko
     529. Set any advance options within libtrace if required (defines at top of ./lib/format_dpdk.c)
     5310. Configure and build - RTE_SDK and RTE_TARGET must be set in the environment for Intel DPDK to be detected
     56    ~cd ../../libtrace-svn/
     57    ~./configure
     58    ~make
     59    ~sudo make install