Changes between Initial Version and Version 1 of DPDKNotes


Ignore:
Timestamp:
08/02/13 18:13:55 (9 years ago)
Author:
rjs51
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • DPDKNotes

    v1 v1  
     1= Notes on Libtrace Intel Data Plane Development Kit Support =
     2
     3'''This format is considered experimental and has limitations that should be understood before using'''
     4
     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.
     7
     8Documentation and source code for the Intel DPDK can be downloaded from [www.intel.com/go/DPDK] the links are in a box at the bottom of the page.
     9
     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 '''
     12
     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:
     16
     17{{{
     18    ~unzip IntelDPDK.L.1.3.1_7.zip -d IntelDPDK
     19    ~cd IntelDPDK
     20}}}
     21
     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.
     23
     24{{{
     25    ~patch -p0 < DPDKLibtracePatch.diff
     26}}}
     27
     285.Apply optional patches (For a specific card HW timestamping etc.. make sure changes are also made to libtrace defines where needed)[[BR]]
     29
     306.Make the DPDK library
     31
     32{{{
     33    ~cd DPDK
     34    ~make install T=x86_64-default-linuxapp-gcc
     35}}}
     36
     377.Export RTE_SDK and RTE_TARGET
     38
     39{{{
     40    ~export RTE_SDK=`pwd`
     41    ~export RTE_TARGET=x86_64-default-linuxapp-gcc
     42}}}
     43
     448. Load the DPDK modules
     45
     46{{{
     47    ~cd $RTE_TARGET/kmod
     48    ~sudo modprobe uio
     49    ~sudo insmod ./igb_uio.ko
     50}}}
     51
     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
     54
     55{{{
     56    ~cd ../../libtrace-svn/
     57    ~./configure
     58    ~make
     59    ~sudo make install
     60}}}